]>
Commit | Line | Data |
---|---|---|
a4f9edf3 RB |
1 | /* { dg-do compile } */ |
2 | /* { dg-options "-O -fdump-tree-original" } */ | |
3 | ||
4 | int f(){ int a; return &a==(void *)"hello"; } | |
5 | int g(){ return "bye"=="hello"; } | |
33a0bfcd | 6 | int h() { return "bye"=="helloooobye"+8; } |
a4f9edf3 RB |
7 | |
8 | /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */ | |
9 | /* The test in h() should be retained because the result depends on | |
10 | string merging. */ | |
fe28d340 TV |
11 | /* { dg-final { scan-assembler "hellooo" { target { ! nvptx*-*-* } } } } */ |
12 | /* { dg-final { scan-assembler "104, 101, 108, 108, 111, 111, 111" { target { nvptx*-*-* } } } } */ | |
13 |