From: Matthias Braun Date: Fri, 6 Jun 2008 16:59:53 +0000 (+0000) Subject: error 34 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=044fb0194ebff0b1d4d42a765bac4206feb4613d;p=cparser error 34 [r20013] --- diff --git a/parsetest/cp_error034.c b/parsetest/cp_error034.c new file mode 100644 index 0000000..470e74c --- /dev/null +++ b/parsetest/cp_error034.c @@ -0,0 +1,24 @@ +typedef struct atomic_type_properties_t atomic_type_properties_t; +struct atomic_type_properties_t { + unsigned size; /**< type size in bytes */ +}; + +enum atomic_types { + ATOMIC_TYPE_VOID = 0, + ATOMIC_TYPE_CHAR, + ATOMIC_TYPE_LAST = ATOMIC_TYPE_CHAR +}; + +static atomic_type_properties_t atomic_type_properties[ATOMIC_TYPE_LAST+1] = { + [ATOMIC_TYPE_CHAR] = { + .size = 1, + }, + [ATOMIC_TYPE_VOID] = { + .size = 0, + }, +}; + +int main(void) +{ + return atomic_type_properties[ATOMIC_TYPE_CHAR].size != 1; +}