cp_error041: Pointer arithmetic with pointer to an enum bitfield
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 02:21:15 +0000 (02:21 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 02:21:15 +0000 (02:21 +0000)
[r20981]

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

diff --git a/parsetest/cp_error041.c b/parsetest/cp_error041.c
new file mode 100644 (file)
index 0000000..30a2831
--- /dev/null
@@ -0,0 +1,15 @@
+typedef enum {
+       blub
+} pr_opcode_e;
+
+typedef struct statement_s {
+       pr_opcode_e             op:16;
+} dstatement_t;
+
+dstatement_t *ptr;
+
+int main(void)
+{
+       ptr++;
+       return 0;
+}