Add a test case for P%7346, which was fixed by not doing the operator
delete lookup until the end of the class definition. llvm-svn: 110176
This commit is contained in:
parent
deb646ebb5
commit
3faf1cf3ea
|
@ -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*);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue