FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / explicit1.C
blob28213ba377d598f821489f80678507d9787c1f31
1 struct A1 {
2   explicit A1(int) { }
3 } a1(1);
5 struct A {
6   explicit A(int);
7 } a(1);
9 A::A(int) {
12 void foo(A a) {
13   foo(a);
14   foo(1);               // ERROR - not allowed