]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr81795.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr81795.c
CommitLineData
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
8struct S { int f; }; /* { dg-bogus "note: originally defined here" } */
9typedef int S; /* { dg-bogus "invalid in C\[+\]\[+\]" } */
10
11typedef int T; /* { dg-bogus "note: originally defined here" } */
12struct T { int f; }; /* { dg-bogus "invalid in C\[+\]\[+\]" } */
13
14#pragma GCC diagnostic pop