gcc/testsuite/gcc.dg/alias-15.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-O2 -fcommon -fdump-ipa-cgraph" } */ |
| 3 | |
| 4 | /* RTL-level CSE shouldn't introduce LCO (for the string) into varpool */ |
| 5 | char *p; |
| 6 | |
| 7 | void foo () |
| 8 | { |
| 9 | p = "abc\n"; |
| 10 | |
| 11 | while (*p != '\n') |
| 12 | p++; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-ipa-dump-not "LC0" "cgraph" } } */ |