1 /// To compile this type: 2 /// g++ -g -c test45-anon-dm-change-v0.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 int m0; 10 char m1; 11 }; 12 13 struct S1 14 { 15 struct {int m0; char m01;}; 16 char m1; 17 }; 18 19 void foo(S0 &)20foo(S0&) 21 {} 22 23 void bar(S1 &)24bar(S1&) 25 {} 26