2 /* { dg-do compile } */
3 /* { dg-options "-Wc++-compat" } */
5 #pragma GCC diagnostic push
6 #pragma GCC diagnostic ignored "-Wc++-compat"
8 struct S
{ int f
; }; /* { dg-bogus "note: originally defined here" } */
9 typedef int S
; /* { dg-bogus "invalid in C\[+\]\[+\]" } */
11 typedef int T
; /* { dg-bogus "note: originally defined here" } */
12 struct T
{ int f
; }; /* { dg-bogus "invalid in C\[+\]\[+\]" } */
14 #pragma GCC diagnostic pop