Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/debug/debug-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* This testcase failed, because scope containing baz was deleted (spanned 0 basic blocks) and DWARF-2 couldn't find baz origin. */ /* { dg-do compile } */ /* { dg-require-effective-target trampolines } */ struct A { char *a, *b, *c, *d; }; static int bar (struct A *x) { return x->c - x->b; } void fnptr (void (*fn) (void)); void foo (void) { struct A e; { void baz (void) { bar (&e); } fnptr (baz); } { struct A *f; f = &e; if (f->c - f->a > f->d - f->a) f->c = f->d; } }