aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-09-15 18:38:46 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-09-15 18:38:46 +0000
commit3617ff1e5d2e4a91a2d3e28055b5ff9bca5d5d8f (patch)
tree393745ee2408afa5279292251111f949c29957ab /gcc
parent0ea009fc534122572838cd1279120984696e64a9 (diff)
downloadgcc-3617ff1e5d2e4a91a2d3e28055b5ff9bca5d5d8f.zip
gcc-3617ff1e5d2e4a91a2d3e28055b5ff9bca5d5d8f.tar.gz
gcc-3617ff1e5d2e4a91a2d3e28055b5ff9bca5d5d8f.tar.bz2
* gcc.dg/cpp/macro9.c: New test.
From-SVN: r45636
Diffstat (limited to 'gcc')
-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