================
@@ -53,3 +53,14 @@ alignas(4) auto PR19252 = 0;
// Check the diagnostic message
class alignas(void) AlignasVoid {}; // expected-error {{invalid application of
'alignas' to an incomplete type 'void'}}
+
+namespace GH108819 {
+void a([[maybe_unused]] void) {} // expected-warning
{{attribute 'maybe_unused' cannot be applied to a 'void' parameter}}\
----------------
a-tarasyuk wrote:
@shafik Thanks for the feedback. I've added more test cases. Could you take a
look?
https://github.com/llvm/llvm-project/pull/124920
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits