Objective-C++ : Fix up testcase EOF diagnostics.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 26 Dec 2020 19:46:50 +0000 (19:46 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 26 Dec 2020 19:51:15 +0000 (19:51 +0000)
Some Objective-C++ testcases need modification in reponse to the
solution to PR 96045.

gcc/testsuite/ChangeLog:

PR c++/96045
* obj-c++.dg/property/property-neg-6.mm: Adjust EOF
diagnostic location.
* obj-c++.dg/syntax-error-10.mm: Likewise.
* obj-c++.dg/syntax-error-8.mm: Likewise.
* obj-c++.dg/syntax-error-9.mm: Likewise.

gcc/testsuite/obj-c++.dg/property/property-neg-6.mm
gcc/testsuite/obj-c++.dg/syntax-error-10.mm
gcc/testsuite/obj-c++.dg/syntax-error-8.mm
gcc/testsuite/obj-c++.dg/syntax-error-9.mm

index 1db6f0ba1b89d070eb6a0c7fb94063381ff56186..c4a22eb6d203dee4ed69c802e15685f539a5d56d 100644 (file)
@@ -6,4 +6,4 @@
   int iVar;
 }
 @property int FooBar /* { dg-error "expected ';' at end of input" } */
-                    /* { dg-error "-:expected '@end' at end of input" "" { target *-*-* } .+1 } */
+                    /* { dg-error "expected '@end' at end of input" "" { target *-*-* } .-1 } */
index 6fcf96f769e53d6c0793ba87f92c10b764449b4d..f8e0c50b1462b4cf3b5cbfc78bb63c8fc5857e6f 100644 (file)
@@ -1,2 +1,2 @@
 @interface
-/* { dg-error "-:expected identifier" "" { target *-*-* } .+1 } */
+/* { dg-error "expected identifier" "" { target *-*-* } .-1 } */
index f7cfe0e0895a6fb738b42ad7d20ce39bb575958f..c13303fb7750946b96fd663136b58af96d1a7feb 100644 (file)
@@ -1 +1 @@
-@interface A /* { dg-error "-:expected ..end." "" { target *-*-* } .+1 } */
+@interface A /* { dg-error "expected ..end." "" { target *-*-* } .-1 } */
index ad8837c28af8b719cdde3e3621dc7638695c0630..e1f8bd17550f5d2ed3c1298128c564c4cbd0e4c8 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-additional-options "-Wno-objc-root-class" }
 @implementation SaturnDoc /* { dg-warning "cannot find interface declaration" } */
 - read: (void*)aStream ggg /* { dg-error "expected .:. at end of input" } */
-/* { dg-error "-:expected ..*. at end of input" "" { target *-*-* } .+1 } */
+/* { dg-error "expected ..*. at end of input" "" { target *-*-* } .-1 } */