aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/macro9.c14
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7d42cec..0aea5b7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * gcc.dg/cpp/macro9.c: New test.
+
2001-09-15 Aldy Hernandez <aldyh@redhat.com>
* gcc.c-torture/execute/980223.c: Change type of addr from long
diff --git a/gcc/testsuite/gcc.dg/cpp/macro9.c b/gcc/testsuite/gcc.dg/cpp/macro9.c
new file mode 100644
index 0000000..f79d15c
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/macro9.c
@@ -0,0 +1,14 @@
+/* Copyright (C) 2001 Free Software Foundation, Inc. */
+
+/* { dg-do compile } */
+
+/* Source: Neil Booth, 15 Sep 2001.
+
+ A silly test to check that if a function-like macro name is
+ immediately followed by a directive, then we process the directive
+ properly. */
+
+#define int()
+int
+#define main main () { return 0; }
+main