c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr69242.c
blob2a50a167d1a6740f19c6bef8ba29135d97b465b0
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=gnu17 -w" } */
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])