blob: 617c7ba8a101ce8d6edcc56eb230bbe82bb8618c [file] [log] [blame]
// PR c++/19811
class C; // { dg-message "7:forward" }
void foo(void *p) {
delete [] ((C*)p) ; // { dg-warning "3:possible problem detected in invocation of operator .delete \\\[\\\]." }
// { dg-message "3:neither the destructor nor the class-specific" "note" { target *-*-* } .-1 }
// { dg-warning "invalid use of incomplete type" "" { target *-*-* } .-2 }
}