x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / c-c++-common / pr68833-1.c
blobc88f67e00d7464ff209aa5a544e6f731c9e46773
1 /* PR c/68833 */
2 /* { dg-do compile } */
3 /* { dg-options "-Werror=larger-than-65536 -Werror=format -Werror=missing-noreturn" } */
4 /* { dg-require-effective-target int32plus } */
6 int a[131072]; /* { dg-error "size of 'a' is \[1-9]\[0-9]* bytes" } */
7 int b[1024]; /* { dg-bogus "size of 'b' is \[1-9]\[0-9]* bytes" } */
9 void
10 f1 (const char *fmt)
12 __builtin_printf ("%d\n", 1.2); /* { dg-error "expects argument of type" } */
13 __builtin_printf (fmt, 1.2); /* { dg-bogus "format not a string literal, argument types not checked" } */
16 extern void f2 (void);
17 void
18 f2 (void) /* { dg-error "candidate for attribute 'noreturn'" "detect noreturn candidate" } */
20 __builtin_exit (0);
23 /* { dg-prune-output "treated as errors" } */