================
@@ -14,3 +14,13 @@ __has_cpp_attribute(__clang__::fallthrough) //
expected-error {{missing ')' afte
// expected-note {{to match this
'('}} \
// expected-error {{builtin
feature check macro requires a parenthesized identifier}}
+namespace GH178098 {
+// expected-error@+2 {{builtin feature check macro requires a parenthesized
identifier}}
+// expected-error@+1 {{expected value in expression}}
+#if __has_cpp_attribute(clang::
----------------
a-tarasyuk wrote:
@AaronBallman thanks for the feedback. I’ve added tests for `__has_c_attribute`
and `__has_attribute`., `__has_include` already has coverage for these cases
https://github.com/llvm/llvm-project/blob/7c3a2113febd1df48b31c2ada5cbcf1935053807/clang/test/Preprocessor/has_include.c#L155-L172
https://github.com/llvm/llvm-project/pull/178273
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits