diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/preprocess.s')
-rw-r--r-- | gcc/testsuite/gcc.apple/preprocess.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/preprocess.s b/gcc/testsuite/gcc.apple/preprocess.s new file mode 100644 index 00000000000..897f2a7d6b1 --- /dev/null +++ b/gcc/testsuite/gcc.apple/preprocess.s @@ -0,0 +1,16 @@ +/* APPLE LOCAL file preprocess .s files */ + +/* Regression test - in assembly language, # may have some significance + other than 'stringize macro argument' and therefore must be preserved + in the output, and should not be warned about. */ + +/* { dg-do preprocess } */ + +#define foo() mov r0, #5 /* { dg-bogus "not followed" "spurious warning" } */ + +entry: + foo() + +/* Check we don't EOF on an unknown directive. */ +#unknown directive +#error a later diagnostic /* { dg-error "diagnostic" } */ |