view gcc/testsuite/g++.old-deja/g++.jason/nested4.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { 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'
}