================
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
+
+int foo([[maybe_unused, maybe_unused]] int a) { // expected-warning 
{{attribute 'maybe_unused' is already applied}}
----------------
shafik wrote:

You should also test cases like this: https://godbolt.org/z/G99qM5eGE

There are probably other attributes you should be testing as well.

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

Reply via email to