Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/lto/c-compatible-types-1_0.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-lto-do run } */ /* { dg-lto-options "-O3" } */ /* By C standard Each enumerated type shall be compatible with char, a signed integer, type, or an unsigned integer type. The choice of type is implementation-defined. Check that enum and unsigned int match. */ unsigned int a; unsigned int *b; void t(); void reset () { asm("":"=r"(a):"0"(0)); } int main() { asm("":"=r"(a):"0"(1)); asm("":"=r"(b):"0"(&a)); t(); return 0; }