PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63748.c
blobcc353a7e5c34f56b1d5233e87993659a6c02f3c2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
3 /* { dg-require-effective-target nonlocal_goto } */
5 #include <setjmp.h>
7 jmp_buf *alloc_jmp_buf ();
8 int foo (void *);
10 int
11 test (int op, int noside)
13 void *argvec = 0;
15 if (op)
17 jmp_buf *buf = alloc_jmp_buf (); /* { dg-bogus "uninitialized" } */
18 setjmp (*buf);
20 if (noside)
21 goto nosideret;
23 do_call_it:
25 if (noside)
26 goto nosideret;
28 return foo (argvec);
31 argvec = __builtin_alloca (1);
32 goto do_call_it;
34 nosideret:
35 return 1;