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