aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/explicit1.C
blob: 28213ba377d598f821489f80678507d9787c1f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct A1 {
  explicit A1(int) { }
} a1(1);

struct A {
  explicit A(int);
} a(1);

A::A(int) {
}

void foo(A a) {
  foo(a);
  foo(1);		// ERROR - not allowed
}