summaryrefslogtreecommitdiffstats
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
index 8a6d7c2..c33aeb5 100644
--- a/test/Preprocessor/warn-macro-unused.c
+++ b/test/Preprocessor/warn-macro-unused.c
@@ -1,5 +1,10 @@
// RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
+#include "warn-macro-unused.h"
+
#define unused // expected-warning {{macro is not used}}
#define unused
unused
+
+// rdar://9745065
+#undef unused_from_header // no warning
OpenPOWER on IntegriCloud