OSDN Git Service

* gcc.dg/cpp/macro9.c: New test.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Sep 2001 18:38:46 +0000 (18:38 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Sep 2001 18:38:46 +0000 (18:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45636 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/macro9.c [new file with mode: 0644]

index 7d42cec..0aea5b7 100644 (file)
@@ -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 (file)
index 0000000..f79d15c
--- /dev/null
@@ -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