Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.mike/misc6.C

raw
1 // { dg-do assemble }
2 // { dg-prune-output "note" }
3 // { dg-options "-std=c++98 -pedantic-errors" }
4
5 // GROUPS uncaught
6 // Cfront bug A.4 (See Language System Release Notes for the
7 // SPARCompiler C++ version 3.0)
8
9 struct assign {
10 assign& operator = (const assign&);
11 };
12 union U {
13 assign a; // { dg-error "" } member of union cannot have op= 9.4// ERROR - .*
14 };