]>
Commit | Line | Data |
---|---|---|
cc155ff9 AP |
1 | /* PR tree-optimization/110134 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O1 -fdump-tree-optimized" } */ | |
4 | ||
5 | int fu(unsigned a) | |
6 | { | |
7 | a = -a; | |
8 | return a != 0; | |
9 | } | |
10 | int fs(signed a) | |
11 | { | |
12 | a = -a; | |
13 | return a != 0; | |
14 | } | |
15 | ||
16 | /* We should have optimized out the a = -a; statements. */ | |
17 | /* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */ |