diff options
Diffstat (limited to 'tests/preprocessor/special-macro-redefine-function.slang')
| -rw-r--r-- | tests/preprocessor/special-macro-redefine-function.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/preprocessor/special-macro-redefine-function.slang b/tests/preprocessor/special-macro-redefine-function.slang new file mode 100644 index 000000000..cca38f39f --- /dev/null +++ b/tests/preprocessor/special-macro-redefine-function.slang @@ -0,0 +1,14 @@ +//DIAGNOSTIC_TEST:SIMPLE:-E + +// +// Check replacing __FILE__ +// + +#define __FILE__(x) "Is" x + +__FILE__("Anybody") +__FILE__(There) + +#undef __FILE__ + +__FILE__
\ No newline at end of file |
