We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211b51e commit 5a0da33Copy full SHA for 5a0da33
clang/test/Preprocessor/macro_reserved.i
@@ -0,0 +1,11 @@
1
+// RUN: %clang_cc1 -fsyntax-only -verify -x cpp-output %s
2
+#pragma clang diagnostic push
3
+#pragma clang diagnostic warning "-Wreserved-macro-identifier"
4
+# 1 "<built-in>" 1
5
+#define __BUILTIN__ // expected-warning {{macro name is a reserved identifier}}
6
+# 2 "<command line>" 1
7
+#define __CMD__ // expected-warning {{macro name is a reserved identifier}}
8
+# 3 "biz.cpp" 1
9
+#define __SOME_FILE__ // expected-warning {{macro name is a reserved identifier}}
10
+int v;
11
+#pragma clang diagnostic pop
0 commit comments