You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
312 B

/// To compile this type:
/// g++ -g -c test45-anon-dm-change-v0.cc
///
/// This test is to detect a change where a non-anonymous data member
/// becomes anonymous and vice-versa.
struct S0
{
int m0;
char m1;
};
struct S1
{
struct {int m0; char m01;};
char m1;
};
void
foo(S0&)
{}
void
bar(S1&)
{}