aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/union.C
blob: b145390efcca7da06b1e57aec862d9ce085fb91a (plain)
1
2
3
4
5
6
7
8
9
10
11
// Bug: g++ doesn't insert anon union members into class scope.
// Breaks groff.
// Build don't link:

struct A {
  union {
    int i;
  };

  void foo () { i = 1; }	// gets bogus error - 
};