diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2019-01-09 16:41:36 -0500 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2019-01-09 16:41:36 -0500 |
commit | 430002e1d97ca7b02d6c9baa1378bdda4fbf7527 (patch) | |
tree | a5bdde09edf75dbcfac30acd9945cc5ae42bb3ca /gcc/testsuite/obj-c++.dg | |
parent | adcb167e030e016946c3dbf6fcfc81093ca6feea (diff) | |
download | gcc-430002e1d97ca7b02d6c9baa1378bdda4fbf7527.zip gcc-430002e1d97ca7b02d6c9baa1378bdda4fbf7527.tar.gz gcc-430002e1d97ca7b02d6c9baa1378bdda4fbf7527.tar.bz2 |
PR other/16615 [3/5]
2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
PR other/16615 [3/5]
gcc/testsuite/
* g++.dg/lto/odr-1_1.C: Update diagnostic message patterns to replace
"can not" with "cannot".
* gfortran.dg/common_15.f90: Likewise.
* gfortran.dg/derived_result_2.f90: Likewise.
* gfortran.dg/do_check_6.f90: Likewise.
* gfortran.dg/namelist_args.f90: Likewise.
* gfortran.dg/negative_unit_check.f90: Likewise.
* gfortran.dg/pure_formal_3.f90: Likewise.
* obj-c++.dg/attributes/method-attribute-2.mm: Likewise.
* obj-c++.dg/exceptions-3.mm: Likewise.
* obj-c++.dg/exceptions-4.mm: Likewise.
* obj-c++.dg/exceptions-5.mm: Likewise.
* obj-c++.dg/property/at-property-23.mm: Likewise.
* obj-c++.dg/property/dotsyntax-17.mm: Likewise.
* obj-c++.dg/property/property-neg-7.mm: Likewise.
* objc.dg/attributes/method-attribute-2.m: Likewise.
* objc.dg/exceptions-3.m: Likewise.
* objc.dg/exceptions-4.m: Likewise.
* objc.dg/exceptions-5.m: Likewise.
* objc.dg/param-1.m: Likewise.
* objc.dg/property/at-property-23.m: Likewise.
* objc.dg/property/dotsyntax-17.m: Likewise.
* objc.dg/property/property-neg-7.m: Likewise.
From-SVN: r267785
Diffstat (limited to 'gcc/testsuite/obj-c++.dg')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm | 2 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/exceptions-3.mm | 6 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/exceptions-4.mm | 2 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/exceptions-5.mm | 6 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/property/at-property-23.mm | 4 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm | 10 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/property/property-neg-7.mm | 8 |
7 files changed, 19 insertions, 19 deletions
diff --git a/gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm b/gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm index 90369cc..06dfa20 100644 --- a/gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm +++ b/gcc/testsuite/obj-c++.dg/attributes/method-attribute-2.mm @@ -14,7 +14,7 @@ @end @implementation obj -- (int) depmth __attribute__((deprecated)) { return var; } /* { dg-warning "method attributes can not be specified in @implementation context" } */ +- (int) depmth __attribute__((deprecated)) { return var; } /* { dg-warning "method attributes cannot be specified in @implementation context" } */ - (int) depmtharg:(int) iarg { return var + iarg ; } - (int) unusedarg:(int) __attribute__((unused)) uarg { return var; } - (int) depunusedarg:(int) __attribute__((unused)) uarg { return var; } diff --git a/gcc/testsuite/obj-c++.dg/exceptions-3.mm b/gcc/testsuite/obj-c++.dg/exceptions-3.mm index c29752d..90a657c 100644 --- a/gcc/testsuite/obj-c++.dg/exceptions-3.mm +++ b/gcc/testsuite/obj-c++.dg/exceptions-3.mm @@ -51,7 +51,7 @@ int test (id object) } @try { @throw object; } - @catch (id <MyProtocol> x) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (id <MyProtocol> x) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } @@ -63,7 +63,7 @@ int test (id object) } @try { @throw object; } - @catch (MyObject <MyProtocol> *x) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (MyObject <MyProtocol> *x) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } @@ -86,7 +86,7 @@ int test (id object) } @try { @throw object; } - @catch (MyObjectTypedef <MyProtocol> *x) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (MyObjectTypedef <MyProtocol> *x) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } diff --git a/gcc/testsuite/obj-c++.dg/exceptions-4.mm b/gcc/testsuite/obj-c++.dg/exceptions-4.mm index 104ad0e..ccdeb34a 100644 --- a/gcc/testsuite/obj-c++.dg/exceptions-4.mm +++ b/gcc/testsuite/obj-c++.dg/exceptions-4.mm @@ -44,7 +44,7 @@ int test (id object) dummy++; } @catch (id <MyProtocol x) /* { dg-error "expected ... before .x." } */ - { /* { dg-error "@catch parameter can not be protocol-qualified" "" { target *-*-* } .-1 } */ + { /* { dg-error "@catch parameter cannot be protocol-qualified" "" { target *-*-* } .-1 } */ dummy++; } @catch MyObject *x /* { dg-error "expected ... before .MyObject." } */ diff --git a/gcc/testsuite/obj-c++.dg/exceptions-5.mm b/gcc/testsuite/obj-c++.dg/exceptions-5.mm index 9e733a7..01bf108 100644 --- a/gcc/testsuite/obj-c++.dg/exceptions-5.mm +++ b/gcc/testsuite/obj-c++.dg/exceptions-5.mm @@ -51,7 +51,7 @@ int test (id object) } @try { @throw object; } - @catch (id <MyProtocol>) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (id <MyProtocol>) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } @@ -63,7 +63,7 @@ int test (id object) } @try { @throw object; } - @catch (MyObject <MyProtocol> *) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (MyObject <MyProtocol> *) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } @@ -87,7 +87,7 @@ int test (id object) } @try { @throw object; } - @catch (MyObjectTypedef <MyProtocol> *) /* { dg-error "@catch parameter can not be protocol-qualified" } */ + @catch (MyObjectTypedef <MyProtocol> *) /* { dg-error "@catch parameter cannot be protocol-qualified" } */ { dummy++; } diff --git a/gcc/testsuite/obj-c++.dg/property/at-property-23.mm b/gcc/testsuite/obj-c++.dg/property/at-property-23.mm index 2d70445..009caf9 100644 --- a/gcc/testsuite/obj-c++.dg/property/at-property-23.mm +++ b/gcc/testsuite/obj-c++.dg/property/at-property-23.mm @@ -11,8 +11,8 @@ { Class isa; } -@property int a[8]; /* { dg-error "property can not be an array" } */ +@property int a[8]; /* { dg-error "property cannot be an array" } */ @property int b:8; /* { dg-error "expected" } */ -@property int c[]; /* { dg-error "property can not be an array" } */ +@property int c[]; /* { dg-error "property cannot be an array" } */ /* { dg-error "forbids flexible array member" "flexible array member" { target *-*-* } .-1 } */ @end diff --git a/gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm b/gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm index c28e11f..ce01598 100644 --- a/gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm +++ b/gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm @@ -35,19 +35,19 @@ int main (void) { MyRootClass *object = [[MyRootClass alloc] init]; - object.count = 10; /* { dg-error "readonly property can not be set" } */ + object.count = 10; /* { dg-error "readonly property cannot be set" } */ if (object.count != 10) /* Ok */ abort (); /* Test errors when trying to change a readonly property using pre/post increment/decrement operators. */ - object.count++; /* { dg-error "readonly property can not be set" } */ + object.count++; /* { dg-error "readonly property cannot be set" } */ - ++object.count; /* { dg-error "readonly property can not be set" } */ + ++object.count; /* { dg-error "readonly property cannot be set" } */ - object.count--; /* { dg-error "readonly property can not be set" } */ + object.count--; /* { dg-error "readonly property cannot be set" } */ - --object.count; /* { dg-error "readonly property can not be set" } */ + --object.count; /* { dg-error "readonly property cannot be set" } */ /* Test errors when trying to change something using Objective-C 2.0 dot-syntax but there is a setter but no getter. */ diff --git a/gcc/testsuite/obj-c++.dg/property/property-neg-7.mm b/gcc/testsuite/obj-c++.dg/property/property-neg-7.mm index 4c3d5d7..245a807 100644 --- a/gcc/testsuite/obj-c++.dg/property/property-neg-7.mm +++ b/gcc/testsuite/obj-c++.dg/property/property-neg-7.mm @@ -13,8 +13,8 @@ void foo (NSArray *ans[], id pid, id apid[], int i) { NSArray *test; - test.count = 1; /* { dg-error "readonly property can not be set" } */ - ((NSArray *)pid).count = 1; /* { dg-error "readonly property can not be set" } */ - ((NSArray *)apid[i]).count = 1; /* { dg-error "readonly property can not be set" } */ - ans[i].count = 3; /* { dg-error "readonly property can not be set" } */ + test.count = 1; /* { dg-error "readonly property cannot be set" } */ + ((NSArray *)pid).count = 1; /* { dg-error "readonly property cannot be set" } */ + ((NSArray *)apid[i]).count = 1; /* { dg-error "readonly property cannot be set" } */ + ans[i].count = 3; /* { dg-error "readonly property cannot be set" } */ } |