- implemented GNU ?: operator (no ast2firm support yet
[cparser] / parsetest / cp_error034.c
1 typedef struct atomic_type_properties_t atomic_type_properties_t;
2 struct atomic_type_properties_t {
3         unsigned   size;              /**< type size in bytes */
4 };
5
6 enum atomic_types {
7         ATOMIC_TYPE_VOID = 0,
8         ATOMIC_TYPE_CHAR,
9         ATOMIC_TYPE_LAST = ATOMIC_TYPE_CHAR
10 };
11
12 static atomic_type_properties_t atomic_type_properties[ATOMIC_TYPE_LAST+1] = {
13         [ATOMIC_TYPE_CHAR] = {
14                 .size      = 1,
15         },
16         [ATOMIC_TYPE_VOID] = {
17                 .size      = 0,
18         },
19 };
20
21 int main(void)
22 {
23         return atomic_type_properties[ATOMIC_TYPE_CHAR].size != 1;
24 }