* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / explicit1.C
blobb8284abaa684f7760c8c69466357efcafc1655b6
1 // { dg-do assemble  }
2 struct A1 {
3   explicit A1(int) { }
4 } a1(1);
6 struct A {
7   explicit A(int);
8 } a(1);
10 A::A(int) {
13 void foo(A a) {
14   foo(a);
15   foo(1);               // { dg-error "" } not allowed