aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro9.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro9.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro9.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro9.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro9.c
new file mode 100644
index 000000000..ef9e3697e
--- /dev/null
+++ b/gcc-4.9/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 main()
+int main
+#define mainbody () { return 0; }
+mainbody