1 // Test for explicit conversion ops in various conversion situations.
2 // { dg-do compile { target c++11 } }
8 explicit operator int() const;
9 explicit operator pfn() const;
15 int i = a; // { dg-error "" }
16 const int &ir = a; // { dg-error "" }
17 a(); // { dg-error "" }
18 a + 1; // { dg-message "" } (error and note on same line)
28 B(const A& a): i(a) { }