Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / anon.C
blobe970359f8a80c23697c3b510def076154b0f29a6
1 // { dg-do run  }
2 // Bug: g++ has trouble copying anonymous structs.
4 typedef struct { int i; } foo;
5 struct A : public foo { 
6   struct { int i; } x;
7 };
9 int main ()
11   A a;
12   a.i = 5;
13   a.x.i = 42;
14   A b (a);
15   a = b;
16   if (a.i != 5 || a.x.i != 42)
17     return 1;
18   return 0;