OSDN Git Service

* cpptrad.c (scan_out_logical_line): Check recursing only when
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / assembler.S
1 /* Regression test - in assembly language, # may have some significance
2    other than 'stringize macro argument' and therefore must be preserved
3    in the output, and should not be warned about.  */
4
5 /* { dg-do preprocess } */
6
7 #define foo() mov r0, #5  /* { dg-bogus "not followed" "spurious warning" } */
8
9 entry:
10         foo()
11
12 /* Check we don't EOF on an unknown directive.  */
13 #unknown directive
14 #error a later diagnostic       /* { dg-error "diagnostic" } */
15                 
16 /*
17    { dg-final { if ![file exists 20000510-1.i] { return }       } }
18    { dg-final { set tmp [grep 20000510-1.i # line]              } }
19    { dg-final { if {[string length $tmp] > 0} \{                } }
20    { dg-final {     pass "20000510-1.S: # preservation"         } }
21    { dg-final { \} else \{                                      } }
22    { dg-final {     fail "20000510-1.S: # preservation"         } }
23    { dg-final { \}                                              } }
24 */
25