| 1 |
// { dg-additional-options "-fmodules-ts -fdump-lang-module-vops" } |
| 2 |
|
| 3 |
import "macro-3_b.H"; |
| 4 |
import "macro-3_a.H"; |
| 5 |
|
| 6 |
int main () |
| 7 |
{ |
| 8 |
#ifdef foo |
| 9 |
return 1; |
| 10 |
#endif |
| 11 |
if (bar != 3) |
| 12 |
return 2; |
| 13 |
#define foo 2 |
| 14 |
if (foo != 2) |
| 15 |
return 3; |
| 16 |
return 0; |
| 17 |
} |
| 18 |
|
| 19 |
// { dg-final { scan-lang-dump {Read new macro #define foo at} module } } |
| 20 |
// { dg-final { scan-lang-dump {Read new macro #define bar at} module } } |
| 21 |
|
| 22 |
// { dg-final { scan-lang-dump {Read add macro #undef foo} module } } |
| 23 |
// { dg-final { scan-lang-dump {Read new macro #define bob} module } } |
| 24 |
// { dg-final { scan-lang-dump {Read add macro #undef & #define bar} module } } |