summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/nested4.C
blob: 02bf354e9bc74413d2e4d49a450dc2536506a684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// From: quipu@ulrik.uio.no
// Subject: extern "C" nested class
// Date: Fri, 13 Aug 1993 15:33:53 +0200

extern "C" {
  struct A {
    struct B { int j; } *x;
  };
}

void
foo () {
  A a;
  struct A::B *b;
  b = a.x;	// { dg-bogus "" } type `B' is not a base type for type `B'
}