OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / nested4.C
1 // { dg-do assemble  }
2 // From: quipu@ulrik.uio.no
3 // Subject: extern "C" nested class
4 // Date: Fri, 13 Aug 1993 15:33:53 +0200
5
6 extern "C" {
7   struct A {
8     struct B { int j; } *x;
9   };
10 }
11
12 void
13 foo () {
14   A a;
15   struct A::B *b;
16   b = a.x;      // { dg-bogus "" } type `B' is not a base type for type `B'
17 }