summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/anon2.C
blob: 5bde08db9523de532f7a215195384f817878c021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// { dg-options "" }
// { dg-prune-output "note" }

struct S 
{
  S ();
};

union U {
  struct { 
    S s; // { dg-error "" } struct with constructor in union
  };
};