Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr36343.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
extern void abort (void); void __attribute__((noinline)) bar (int **p) { float *q = (float *)p; *q = 0.0; } float __attribute__((noinline)) foo (int b) { int *i = 0; float f = 1.0; int **p; if (b) p = &i; else p = (int **)&f; bar (p); if (b) return **p; return f; } int main() { if (foo(0) != 0.0) abort (); return 0; }