From ec1fb90e954fb49292b3e3d941db259045c92fcf Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 14 Sep 2000 21:13:10 +0000 Subject: [PATCH] * paste9.c: New preprocessor ## test. From-SVN: r36419 --- gcc/testsuite/gcc.dg/cpp/paste9.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/cpp/paste9.c diff --git a/gcc/testsuite/gcc.dg/cpp/paste9.c b/gcc/testsuite/gcc.dg/cpp/paste9.c new file mode 100644 index 00000000000..35c86b4e89b --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/paste9.c @@ -0,0 +1,23 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do run } */ +/* { dg-options "" } */ + +/* Apparently older preprocessors used to fail this test. */ + +#include + +extern void abort (void); + +#define S(str, args...) " " str "\n", ##args + +int +main() +{ + const char *s = S("foo"); + + if (strchr (s, '\n') == NULL) + abort (); + + return 0; +}