================
@@ -37,3 +37,10 @@ void instantiateArrayDecay() {
int a[1];
arrayDecay(a);
}
+
+namespace GH79748 {
+typedef decltype(sizeof(0)) size_t;
+struct A {
+ void* operator new(size_t bytes) const; //expected-error {{static member
function cannot have 'const' qualifier}}
----------------
Fznamznon wrote:
Perhaps a test with `volatile` qualifier also makes sense?
Crashes too https://godbolt.org/z/TWr8zqKK1
https://github.com/llvm/llvm-project/pull/80327
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits