1 /* { dg-do compile } */ 2 /* { dg-additional-options "-w" } */ 3 4 int a[1]; 5 void *memcpy(); 6 int smx_ctx_base_factory_create_context_sized(); 7 void getcontext(); smx_ctx_sysv_create_context()8void 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 16