Home | History | Annotate | Download | only in expr.const

Lines Matching full:constexpr

9   constexpr A(int i) : val(i) { }
10 constexpr operator int() const { return val; }
11 constexpr operator long() const { return 43; }
16 constexpr A a = 42;
23 constexpr OK() {}
24 constexpr operator int() const { return 8; }
25 } constexpr ok;
28 constexpr Explicit() {}
29 constexpr explicit operator int() const { return 4; } // expected-note 4{{here}}
30 } constexpr expl;
32 constexpr Ambiguous() {}
33 constexpr operator int() const { return 2; } // expected-note 4{{here}}
34 constexpr operator long() const { return 1; } // expected-note 4{{here}}
35 } constexpr ambig;
37 constexpr int test_ok = ok; // ok
38 constexpr int test_explicit(expl); // ok
39 constexpr int test_ambiguous = ambig; // ok