aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/cxx-scope-2.mm')
-rw-r--r--gcc/testsuite/obj-c++.dg/cxx-scope-2.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm b/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm
index 21fed50..c793b28 100644
--- a/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm
+++ b/gcc/testsuite/obj-c++.dg/cxx-scope-2.mm
@@ -11,9 +11,9 @@
@end
int main(void) {
- id i = [std::iostream new]; /* { dg-warning "not an Objective\\-C class name or alias" } */
+ id i = [std::iostream new]; /* { dg-error "not an Objective\\-C class name or alias" } */
i = [iostream new];
- i = [std::basic_string<char> new]; /* { dg-warning "not an Objective\\-C class name or alias" } */
+ i = [std::basic_string<char> new]; /* { dg-error "not an Objective\\-C class name or alias" } */
return 0;
}