]>
Commit | Line | Data |
---|---|---|
bb85aa74 MP |
1 | /* PR c/81795 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-Wc++-compat" } */ | |
4 | ||
5 | #pragma GCC diagnostic push | |
6 | #pragma GCC diagnostic ignored "-Wc++-compat" | |
7 | ||
8 | struct S { int f; }; /* { dg-bogus "note: originally defined here" } */ | |
9 | typedef int S; /* { dg-bogus "invalid in C\[+\]\[+\]" } */ | |
10 | ||
11 | typedef int T; /* { dg-bogus "note: originally defined here" } */ | |
12 | struct T { int f; }; /* { dg-bogus "invalid in C\[+\]\[+\]" } */ | |
13 | ||
14 | #pragma GCC diagnostic pop |