Commit 35ea5ad3 by Jason Merrill

up

From-SVN: r23693
parent 7a78c20b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
extern "C" extern "C"
{ {
struct xx { struct xx {
void (*xx)(void); void (*xx)(void); // ERROR - field with name of class
int x,y; int x,y;
}; };
} }
......
// Build don't link:
struct S { int S; } object;
struct S function () { return object; }
...@@ -7,5 +7,5 @@ struct S1 { ...@@ -7,5 +7,5 @@ struct S1 {
static int S1; // ERROR - uses same name 9.3 static int S1; // ERROR - uses same name 9.3
}; };
struct S2 { struct S2 {
union { int ii; float S2; }; // ERROR - uses same name 9.3 , XFAIL *-*-* union { int ii; float S2; }; // ERROR - uses same name 9.3
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment