1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void foo(); static int b; static short a(short c, unsigned short d) { return c - d; } int main() { int e = -(0 < b); if (a(1, e)) b = 0; else foo(); } /* { dg-final { scan-tree-dump-not "goto" "optimized" } } */