================
@@ -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::
----------------
AaronBallman wrote:

This also impacts other feature testing macros like `__has_c_attribute`, 
`__has_attribute`, `__has_include`, etc? If so, can we add coverage for them as 
well just to show we thought about them?

https://github.com/llvm/llvm-project/pull/178273
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to