]> granicus.if.org Git - clang/commitdiff
Add a test case for P%7346, which was fixed by not doing the operator
authorJohn McCall <rjmccall@apple.com>
Wed, 4 Aug 2010 01:07:02 +0000 (01:07 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 4 Aug 2010 01:07:02 +0000 (01:07 +0000)
delete lookup until the end of the class definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110176 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/special/class.dtor/p9.cpp

index 13243f510f3e8cb7d6e391d09a0149882d799500..8b76a15078b76d71631ae3ee60b3112334373d3e 100644 (file)
@@ -70,3 +70,16 @@ namespace test2 {
     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*);
+  };
+}