OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / explicit1.C
1 // { dg-do assemble  }
2 // Origin: Jason Merrill <jason@redhat.com>
3
4 struct A
5 {
6   A ();
7   explicit A (int);
8 };
9
10 int main ()
11 {
12   const A& r = 1;               // { dg-error "" } no suitable constructor
13 }