error 34
authorMatthias Braun <matze@braunis.de>
Fri, 6 Jun 2008 16:59:53 +0000 (16:59 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 6 Jun 2008 16:59:53 +0000 (16:59 +0000)
[r20013]

parsetest/cp_error034.c [new file with mode: 0644]

diff --git a/parsetest/cp_error034.c b/parsetest/cp_error034.c
new file mode 100644 (file)
index 0000000..470e74c
--- /dev/null
@@ -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;
+}