diff options
Diffstat (limited to 'test/Modules/macros.c')
-rw-r--r-- | test/Modules/macros.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Modules/macros.c b/test/Modules/macros.c index 83e1c66a10..d93ce35a03 100644 --- a/test/Modules/macros.c +++ b/test/Modules/macros.c @@ -27,4 +27,13 @@ DOUBLE *dp = &d; void f() { // CHECK-PREPROCESSED: int i = INTEGER; int i = INTEGER; // the value was exported, the macro was not. + i += macros; // expanded from __MODULE__ within the 'macros' module. } + +#ifdef __MODULE__ +# error Not building a module! +#endif + +#if __building_module(macros) +# error Not building a module +#endif |