[clang] [clang] Fix `gnu::init_priority` attribute handling for reserved values (PR #121577)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 27 06:50:28 PST 2025
================
@@ -24,32 +24,35 @@ extern Two goo;
extern Two coo[];
extern Two koo[];
+// unknown-system-no-diagnostics
----------------
AaronBallman wrote:
Can you also add a new `RUN` line like:
```
// RUN: %clang_cc1 -triple=x86_64-unknown-unknown -fsyntax-only -Wno-error=init-priority-reserved -verify %s
```
to verify that we get warnings rather than errors when we downgrade the diagnostic level?
https://github.com/llvm/llvm-project/pull/121577
More information about the cfe-commits
mailing list