/* { dg-do compile } */ | |
/* { dg-options "-O2 -fdump-tree-optimized" } */ | |
int a (int x) { | |
return ~x + 1; /* -x */ | |
} | |
int b (int x) { | |
return -x -1; /* ~x */ | |
} | |
/* { dg-final { scan-tree-dump "~x_..D.;" "optimized" } } */ | |
/* { dg-final { scan-tree-dump "-x_..D.;" "optimized" } } */ |