From 044fb0194ebff0b1d4d42a765bac4206feb4613d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 6 Jun 2008 16:59:53 +0000 Subject: [PATCH] error 34 [r20013] --- parsetest/cp_error034.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 parsetest/cp_error034.c 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; +} -- 2.20.1