aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/warn-macro-unused.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/warn-macro-unused.c')
-rw-r--r--test/Preprocessor/warn-macro-unused.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/warn-macro-unused.c b/test/Preprocessor/warn-macro-unused.c
new file mode 100644
index 000000000000..8a6d7c25ca5f
--- /dev/null
+++ b/test/Preprocessor/warn-macro-unused.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
+
+#define unused // expected-warning {{macro is not used}}
+#define unused
+unused