view gcc/testsuite/gcc.dg/torture/pr69242.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-additional-options "-w" } */

int a[1];
void *memcpy();
int smx_ctx_base_factory_create_context_sized();
void getcontext();
void smx_ctx_sysv_create_context() {
    int *b = (int *)smx_ctx_base_factory_create_context_sized();
    getcontext();
    memcpy(a, &b, sizeof(int));
    switch (a[0])
      ;
}