2013-10-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr38616.c
blobb4534b508c0d5e8c1a29d314d2edced8c69ea8a9
1 /* PR middle-end/38616 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -fstack-protector" } */
4 /* { dg-require-effective-target fstack_protector } */
6 #include <stdio.h>
8 #define BUFFER "1234567890abcdefghijklmno"
9 int main (void)
11 char buffer[1024]="";
12 sprintf (buffer, "%s", BUFFER);
13 return strcmp (buffer, BUFFER);