diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/fmacro-prefix-map.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/fmacro-prefix-map.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/fmacro-prefix-map.c b/gcc/testsuite/c-c++-common/fmacro-prefix-map.c new file mode 100644 index 00000000000..db51587cb4f --- /dev/null +++ b/gcc/testsuite/c-c++-common/fmacro-prefix-map.c @@ -0,0 +1,12 @@ +/* Test __builtin_FILE(). */ +/* { dg-do run } */ +/* { dg-options "-fmacro-prefix-map==MACRO-PREFIX" } */ + +#include <stdio.h> + +int main () +{ + printf ("__builtin_FILE starts with %s\n", __builtin_FILE ()); +} + +/* { dg-output "__builtin_FILE starts with MACRO-PREFIX" } */ |