testsuite/small/macro-5.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | #define MAX(a, b) ((a) > (b) ? (a) : (b)) |
| 3 | |
| 4 | /* This macro should not be included in the final output, as it does not impact |
| 5 | the final result. */ |
| 6 | #define a 8 |
| 7 | |
| 8 | int f(void) |
| 9 | { |
| 10 | return MAX(3, 2); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-tree-dump "#define MAX\(a, b\) \(\(a\) > \(b\)" } } */ |
| 14 | /* { dg-final { scan-tree-dump "return MAX\(3, 2\);" } } */ |
| 15 | /* { dg-final { scan-tree-dump-not "#define a 8" } } */ |