]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust testsuite expectations for diagnostic spelling fixes
authorJakub Jelinek <jakub@redhat.com>
Tue, 23 Apr 2024 15:39:48 +0000 (17:39 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 23 Apr 2024 15:39:48 +0000 (17:39 +0200)
The nullability-00.m* tests unfortunately check the exact spelling of
the diagnostics I've changed earlier today.

2024-04-23  Jakub Jelinek  <jakub@redhat.com>

* objc.dg/attributes/nullability-00.m: Adjust expected diagnostic
spelling: recognised -> recognized.
* obj-c++.dg/attributes/nullability-00.mm: Likewise.

gcc/testsuite/obj-c++.dg/attributes/nullability-00.mm
gcc/testsuite/objc.dg/attributes/nullability-00.m

index 957fca4e3ba1dfefcab5d0fa3f7ea1656567a781..cb25cbd4c62cc74ecca2763f27a00230135bd135 100644 (file)
@@ -8,7 +8,7 @@ __attribute__((objc_nullability("unspecified"))) id b;
 __attribute__((objc_nullability("nullable"))) id c;
 __attribute__((objc_nullability("nonnull"))) id d;
 __attribute__((objc_nullability("resettable"))) id e;
-__attribute__((objc_nullability("nonsense"))) id e_3; /* { dg-error {'objc_nullability' attribute argument '"nonsense"' is not recognised} } */
+__attribute__((objc_nullability("nonsense"))) id e_3; /* { dg-error {'objc_nullability' attribute argument '"nonsense"' is not recognized} } */
 __attribute__((objc_nullability(noGoingToWork))) id e_4; /* { dg-error {'noGoingToWork' was not declared in this scope} } */
 
 @interface MyRoot
index 81c0145f17b2dccb91cb604adc53556d288ebb03..2d7e22cf6f7ef5c9a408fa84e82df330b0781ada 100644 (file)
@@ -8,7 +8,7 @@ __attribute__((objc_nullability("unspecified"))) id b;
 __attribute__((objc_nullability("nullable"))) id c;
 __attribute__((objc_nullability("nonnull"))) id d;
 __attribute__((objc_nullability("resettable"))) id e;
-__attribute__((objc_nullability("nonsense"))) id e_3; /* { dg-error {'objc_nullability' attribute argument '"nonsense"' is not recognised} } */
+__attribute__((objc_nullability("nonsense"))) id e_3; /* { dg-error {'objc_nullability' attribute argument '"nonsense"' is not recognized} } */
 __attribute__((objc_nullability(noGoingToWork))) id e_4; /* { dg-error {'noGoingToWork' undeclared here} } */
 
 @interface MyRoot