aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c')
-rw-r--r--gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c
new file mode 100644
index 000000000..98660f8f5
--- /dev/null
+++ b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/cmdlne-dM.c
@@ -0,0 +1,12 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options -dM } */
+
+/* Test -dM does not fail. */
+
+#define objlike obj like
+#define funlike(like) fun like
+#define funlike2(fun, like) fun ## like
+#define varargs(x, ...) x #x #__VA_ARGS__ __VA_ARGS__
+#define gnu_varargs(x, y...) #y x ## y y