aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/preprocess.s
blob: 897f2a7d6b13b190f4b262f819b0dd7b9fdc7be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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" } */