1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* PR middle-end/38616 */ /* { dg-do run } */ /* { dg-options "-O2 -fstack-protector" } */ /* { dg-require-effective-target fstack_protector } */ #include <stdio.h> #define BUFFER "1234567890abcdefghijklmno" int main (void) { char buffer[1024]=""; sprintf (buffer, "%s", BUFFER); return strcmp (buffer, BUFFER); }