================
@@ -54,4 +54,11 @@ struct B {
   void operator delete(void*) volatile; //expected-error {{static member 
function cannot have 'volatile' qualifier}}
   void operator delete[](void*) volatile; //expected-error {{static member 
function cannot have 'volatile' qualifier}}
 };
-}
+  struct RefQualifierLValue {
+    void* operator new(size_t bytes) &; // expected-error {{static member 
function cannot have '&' qualifier}}
+  };
+
+  struct RefQualifierRValue {
+    void* operator new(size_t bytes) &&; // expected-error {{static member 
function cannot have '&&' qualifier}}
+  };
+  } // namespace GH79748
----------------
nehaGautam07 wrote:

Thanks for catching that. Fixed the alignment as suggested.

https://github.com/llvm/llvm-project/pull/215644
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to