================
@@ -51,6 +51,11 @@ struct A { ~A(); };
}
namespace test5 {
+struct A { ~A(); };
+[[clang::always_destroy]] A a; // no warning
+}
+
----------------
AaronBallman wrote:
```suggestion
struct A { ~A(); };
[[clang::always_destroy]] A a; // no warning
void func() {
[[clang::always_destroy]] static A a; // no warning
}
}
```
https://github.com/llvm/llvm-project/pull/86486
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits