aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/id-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/id-1.m')
-rw-r--r--gcc/testsuite/objc.dg/id-1.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/testsuite/objc.dg/id-1.m b/gcc/testsuite/objc.dg/id-1.m
index abc17bc67cc..ceb4d898131 100644
--- a/gcc/testsuite/objc.dg/id-1.m
+++ b/gcc/testsuite/objc.dg/id-1.m
@@ -1,6 +1,7 @@
-/* Test the id type warning. */
+/* Test attempt to redefine 'id' in an incompatible fashion. */
/* { dg-do compile } */
-typedef int id;
+typedef int id; /* { dg-error "conflicting types for .id." } */
+/* { dg-error "previous declaration of .id. was here" "" { target *-*-* } 0 } */
-id b; /* { dg-warning "nexpected type for `id'" } */
+id b;