summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/union.C
blob: 21a0b6f7a88c373b59f9d61871eadf70a9fdd93d (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Bug: g++ doesn't insert anon union members into class scope.
// Breaks groff.

struct A {
  union {
    int i;
  };

  void foo () { i = 1; }	// { dg-bogus "" } 
};