From c0f5d88d86a92cd4df667769b7ce48e1db2c142e Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 14 Feb 2008 15:57:41 +0000 Subject: [PATCH] error20 [r18859] --- parsetest/cp_error020.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 parsetest/cp_error020.c diff --git a/parsetest/cp_error020.c b/parsetest/cp_error020.c new file mode 100644 index 0000000..bd56c34 --- /dev/null +++ b/parsetest/cp_error020.c @@ -0,0 +1,39 @@ +typedef enum { + TYPE_QUALIFIER_NONE = 0, + TYPE_QUALIFIER_CONST = 1 << 0, + TYPE_QUALIFIER_RESTRICT = 1 << 1, + TYPE_QUALIFIER_VOLATILE = 1 << 2, +} type_qualifier_t; + +typedef unsigned int type_qualifiers_t; + +typedef struct source_position_t source_position_t; +struct source_position_t { + const char *input_name; + unsigned linenr; +}; + +typedef struct ir_type ir_type; + +typedef enum { + TYPE_INVALID, + TYPE_ERROR, + TYPE_ATOMIC, +} type_kind_t; + +struct type_base_t { + type_kind_t kind; + type_qualifiers_t qualifiers; + source_position_t source_position; + + ir_type *firm_type; +}; +typedef struct type_base_t type_base_t; + +#define NULL (void*)0 + +int main(void) +{ + static const type_base_t error = { TYPE_ERROR, TYPE_QUALIFIER_NONE, { NULL, 0 }, NULL }; + return 0; +} -- 2.20.1