diff 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 diff
--- a/gcc/testsuite/g++.dg/warn/Wdelete-incomplete-1.C	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/testsuite/g++.dg/warn/Wdelete-incomplete-1.C	Thu Feb 13 11:34:05 2020 +0900
@@ -1,7 +1,8 @@
 // PR c++/43452
 
-class Foo;         // { dg-message "forward" }
+class Foo;         // { dg-message "7:forward declaration" }
 int main() {
-   Foo* p;         // { dg-warning "incomplete" }
-   delete [] p;    // { dg-warning "problem" }
+   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 }
 }