Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr81795.c
blobb035bd0b530558e510952b66eee5b2a4f7d62516
1 /* PR c/81795 */
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