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.
21 lines
405 B
21 lines
405 B
//
|
|
// To compile this file, type:
|
|
//
|
|
// g++ -c -g test44-anon-struct-union-v0.cc
|
|
//
|
|
//
|
|
// This test modifies the type of the S0::m0 data member from the
|
|
// anonymous union to a native type. The resulting change report must
|
|
// refer to the anonymous union by using its flat representation,
|
|
// rather than just "__anonymous_union__".
|
|
|
|
struct S0
|
|
{
|
|
union {int d; char c;} m0;
|
|
int m1;
|
|
};
|
|
|
|
void
|
|
foo(S0*)
|
|
{}
|