Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/Wdelete-incomplete-1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/43452 class Foo; // { dg-message "7:forward declaration" } int main() { Foo* p; // { dg-warning "9:.p. has incomplete type" } delete [] p; // { dg-warning "4:possible problem detected in invocation of operator .delete \\\[\\\]." } // { dg-message "4:neither the destructor nor the class-specific" "note" { target *-*-* } .-1 } }