2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56824.c
blobd682d0a8102764470a114c79b115172deb30ad10
1 /* PR preprocessor/56824 */
2 /* { dg-do compile } */
3 /* { dg-options "-Waggregate-return" } */
5 struct S { int i; };
6 struct S foo (void);
8 #pragma GCC diagnostic push
9 #pragma GCC diagnostic ignored "-Waggregate-return"
11 int
12 main ()
14 foo ();
15 return 0;
18 #pragma GCC diagnostic pop