aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-04 01:07:02 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-04 01:07:02 +0000
commitd05b1b2a4426037d53931c95c9ca685aa03d21f8 (patch)
treea922ed6780adbd2cba9730181e351a0eb9112d61
parent15442825bb2c3f2cc48f3ed753d172beb8ed1232 (diff)
Add a test case for P%7346, which was fixed by not doing the operator
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
-rw-r--r--test/CXX/special/class.dtor/p9.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CXX/special/class.dtor/p9.cpp b/test/CXX/special/class.dtor/p9.cpp
index 13243f510f..8b76a15078 100644
--- a/test/CXX/special/class.dtor/p9.cpp
+++ b/test/CXX/special/class.dtor/p9.cpp
@@ -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*);
+ };
+}