diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09c92d205a1..33631435077 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-07-24 Jakub Jelinek + + * gcc.dg/cpp/20000720-1.S: New test. + 2000-07-21 Michael Meissner * gcc.c-torture/execute/ieee/hugeval.c: New test. diff --git a/gcc/testsuite/gcc.dg/cpp/20000720-1.S b/gcc/testsuite/gcc.dg/cpp/20000720-1.S new file mode 100644 index 00000000000..82e9a84b7fc --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/20000720-1.S @@ -0,0 +1,14 @@ +/* { dg-do preprocess } */ + +#define nop() foobar + nop + call b + +/* + { dg-final { if ![file exists 20000720-1.i] { return } } } + { dg-final { if \{ [grep 20000720-1.i "nop.*call"] != "" \} \{ } } + { dg-final { fail "20000720-1.S: new-line preservation" } } + { dg-final { \} else \{ } } + { dg-final { pass "20000720-1.S: new-line preservation" } } + { dg-final { \} } } +*/