================
@@ -61,6 +59,48 @@ __attribute__((const, pure)) int func7(void); //
expected-warning {{'const' attr
// FIXME: this should also be diagnosed the same as func7.
__attribute__((pure)) int func8(void);
[[gnu::const]] int func8(void) {
- return 12;
+return 12;
----------------
ojhunt wrote:
a bunch of ditto on the unneeded change, even if technically correct
https://github.com/llvm/llvm-project/pull/217817
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits