modula2: M2MetaError.{def,mod} and P2SymBuild.mod further cleanup
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-condneg-2.c
blob1af24636ec764eedde843e4274e9bbb439aa3197
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftrapv -fdump-tree-optimized" } */
4 #define INT_MIN (-__INT_MAX__ - 1)
6 int test(int x)
8 return x != INT_MIN ? -x : INT_MIN;
11 /* { dg-final { scan-tree-dump "goto" "optimized" } } */