Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr69242.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=gnu17 -w" } */
3
4 int a[1];
5 void *memcpy();
6 int smx_ctx_base_factory_create_context_sized();
7 void getcontext();
8 void smx_ctx_sysv_create_context() {
9 int *b = (int *)smx_ctx_base_factory_create_context_sized();
10 getcontext();
11 memcpy(a, &b, sizeof(int));
12 switch (a[0])
13 ;
14 }
15