aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/def_type.bad
blob: 836df1c3a1b9cdccf4c116eb6a8956ecd2f1ba37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

/* ERRORS */
typedef = ;;
typedef a = ;
typedef b;
typedef c c;
typedef alias alias d = int;
typedef incomplete incomplete e = (int, private);
typedef f = typedef;
typedef typedef g = int;

typedef h = (;  // ERROR
typedef i = int; // ERROR unexpected "typedef" token due to missing ")" above


int x;
i use_i; // should work