aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/id-1.m
blob: 2bfcc63f9e74e491d8afd54454bf9c7c1ddb077d (plain)
1
2
3
4
5
6
7
/* 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;