OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ImplicitlyVirtual
(Results
1 - 2
of
2
) sorted by null
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p6.cpp
22
virtual int
ImplicitlyVirtual
() const;
27
constexpr int
ImplicitlyVirtual
() const { return 0; }
30
constexpr int a = ImplicitVirtualFromDependentBase<S>().
ImplicitlyVirtual
(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}}
31
constexpr int b = ImplicitVirtualFromDependentBase<T>().
ImplicitlyVirtual
(); // ok
32
constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::
ImplicitlyVirtual
();
p3.cpp
22
virtual int
ImplicitlyVirtual
() const = 0; // expected-note {{overridden virtual function}}
25
int
ImplicitlyVirtual
() const;
37
constexpr int
ImplicitlyVirtual
() const { return 0; } // expected-error {{virtual function cannot be constexpr}}
Completed in 74 milliseconds