1 /// To compile this type: 2 /// g++ -g -c test45-anon-dm-change-v1.cc 3 /// 4 /// This test is to detect a change where a non-anonymous data member 5 /// becomes anonymous and vice-versa. 6 7 struct S0 8 { 9 union {int m0; char m01;}; 10 char m1; 11 }; 12 13 struct S1 14 { 15 int m0; 16 char m01; 17 char m1; 18 }; 19 20 void foo(S0 &)21foo(S0&) 22 {} 23 24 void bar(S1 &)25bar(S1&) 26 {} 27