Lines Matching refs:constexpr
16 constexpr Literal() {} in Literal()
30 constexpr T();
31 constexpr int f(); // expected-error {{non-literal type 'T' cannot have constexpr members}}
34 …virtual constexpr int ExplicitlyVirtual() { return 0; } // expected-error {{virtual function canno… in ExplicitlyVirtual()
36 …constexpr int ImplicitlyVirtual() { return 0; } // expected-error {{virtual function cannot be con… in ImplicitlyVirtual()
39 …constexpr NonLiteral NonLiteralReturn() { return {}; } // expected-error {{constexpr function's re… in NonLiteralReturn()
40 …constexpr void VoidReturn() { return; } // expected-error {{constexpr function's return type 'void… in VoidReturn()
41 constexpr ~T(); // expected-error {{destructor cannot be marked constexpr}}
43 constexpr F NonLiteralReturn2; // ok until definition
46 …constexpr int NonLiteralParam(NonLiteral) { return 0; } // expected-error {{constexpr function's 1… in NonLiteralParam()
48 constexpr G NonLiteralParam2; // ok until definition
51 constexpr int Deleted() = delete;
57 …constexpr T &operator=(const T&) = default; // expected-error {{an explicitly-defaulted copy assig…
60 constexpr U SelfReturn();
61 constexpr int SelfParam(U);
65 …constexpr int F() { return 0; } // expected-error {{constexpr member function not allowed in struc… in F()
69 constexpr int AllowedStmts() { in AllowedStmts()
94 constexpr int ForStmt() { in ForStmt()
98 constexpr int VarDecl() { in VarDecl()
99 constexpr int a = 0; // expected-error {{variables cannot be declared in a constexpr function}} in VarDecl()
102 constexpr int FuncDecl() { in FuncDecl()
103 constexpr int ForwardDecl(int); // expected-error {{statement not allowed in constexpr function}} in FuncDecl()
106 constexpr int ClassDecl1() { in ClassDecl1()
110 constexpr int ClassDecl2() { in ClassDecl2()
114 constexpr int ClassDecl3() { in ClassDecl3()
118 constexpr int NoReturn() {} // expected-error {{no return statement in constexpr function}} in NoReturn()
119 constexpr int MultiReturn() { in MultiReturn()
131 constexpr int f(int k) { in f()
136 constexpr int f() { // expected-error {{constexpr function never produces a constant expression}} in f()