aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/typedef-redef.c
blob: f90f266af1930b82933f2d5d8d9f14cfa2f1f631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
typedef int  ok_t;
typedef int  ok_t;

typedef int  ko_t;
typedef long ko_t;

/*
 * check-name: typedef-redef
 *
 * check-error-start
typedef-redef.c:5:14: error: symbol 'ko_t' redeclared with different type (different type sizes):
typedef-redef.c:5:14:    long [usertype] ko_t
typedef-redef.c:4:14: note: previously declared as:
typedef-redef.c:4:14:    int [usertype] ko_t
 * check-error-end
 */