]>
Commit | Line | Data |
---|---|---|
07b9f1de | 1 | /* { dg-do compile } */ |
13a43a90 | 2 | /* { dg-options "-O2 -fno-code-hoisting -fdump-tree-pre-stats" } */ |
07b9f1de RB |
3 | |
4 | int f(); | |
5 | int d; | |
13a43a90 | 6 | void c(int x) |
07b9f1de | 7 | { |
13a43a90 RB |
8 | int (*fp)() __attribute__((const)) = (void *)f; |
9 | if (x) | |
10 | d = fp (); | |
11 | int tem = fp (); | |
12 | f(); | |
13 | d = tem; | |
07b9f1de RB |
14 | } |
15 | ||
13a43a90 | 16 | /* We shouldn't ICE and PRE the const call. */ |
07b9f1de | 17 | /* { dg-final { scan-tree-dump "Eliminated: 1" "pre" } } */ |