| 1 |
typedef struct YYSTYPE { // { dg-lto-message "type" 2 } |
| 2 |
// We get two notes here: |
| 3 |
// note: a different type is defined in another translation unit |
| 4 |
// note: a type with different number of fields is defined in another translation unit |
| 5 |
} YYSTYPE; |
| 6 |
union yyalloc { // { dg-lto-message "type" 2 } |
| 7 |
// We get here three notes: |
| 8 |
// note: a different type is defined in another translation unit |
| 9 |
// note: type 'union yyalloc' itself violates the C++ One Definition Rule |
| 10 |
short yyss; |
| 11 |
YYSTYPE yyvs; // { dg-lto-message "field of same name but different type is defined in another translation unit" } |
| 12 |
|
| 13 |
}; |
| 14 |
|
| 15 |
yyalloc a; // { dg-lto-message "'a' was previously declared here" } |
| 16 |
|