[cfe-commits] r110176 - /cfe/trunk/test/CXX/special/class.dtor/p9.cpp

John McCall rjmccall at apple.com
Tue Aug 3 18:07:02 PDT 2010


Author: rjmccall
Date: Tue Aug  3 20:07:02 2010
New Revision: 110176

URL: http://llvm.org/viewvc/llvm-project?rev=110176&view=rev
Log:
Add a test case for P%7346, which was fixed by not doing the operator
delete lookup until the end of the class definition.


Modified:
    cfe/trunk/test/CXX/special/class.dtor/p9.cpp

Modified: cfe/trunk/test/CXX/special/class.dtor/p9.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/special/class.dtor/p9.cpp?rev=110176&r1=110175&r2=110176&view=diff
==============================================================================
--- cfe/trunk/test/CXX/special/class.dtor/p9.cpp (original)
+++ cfe/trunk/test/CXX/special/class.dtor/p9.cpp Tue Aug  3 20:07:02 2010
@@ -70,3 +70,16 @@
     C c; // expected-note {{first required here}}
   }
 }
+
+// PR7346
+namespace test3 {
+  struct A {
+    virtual ~A();
+    static void operator delete(void*, const int &);
+  };
+
+  struct B : A {
+    virtual ~B() {}
+    static void operator delete(void*);
+  };
+}





More information about the cfe-commits mailing list