Commit 87cc8a1d by Neil Booth

20000510-1.S: Rename assembler.S.

        * gcc.dg/cpp/20000510-1.S: Rename assembler.S.  Add test
        that we continue to preprocess after an unknown directive.
	* gcc.dg/cpp/tr-str.c: Run-time test for traditional
	stringification.

From-SVN: r36577
parent c7ef7525
/* 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" } */
......@@ -8,6 +9,10 @@
entry:
foo()
/* Check we don't EOF on an unknown directive. */
#unknown directive
#error a later diagnostic /* { dg-error "diagnostic" } */
/*
{ dg-final { if ![file exists 20000510-1.i] { return } } }
{ dg-final { set tmp [grep 20000510-1.i # line] } }
......
/* Test whether traditional stringify works. */
/* { dg-do preprocess } */
/* { dg-do run } */
/* { dg-options "-traditional" } */
#define foo(a, b) c="a"; d="b";
extern void abort ();
int main ()
{
char *c, *d;
foo (p, q);
if (c[0] != 'p' || d[0] != 'q')
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment