rt_gccstream/gcc/testsuite/objc.dg/id-1.m

8 lines
245 B
Objective-C

/* Test attempt to redefine 'id' in an incompatible fashion. */
/* { dg-do compile } */
typedef int id; /* { dg-error "conflicting types for .id." } */
/* { dg-message "previous declaration of .id. was here" "" { target *-*-* } 0 } */
id b;