diff options
Diffstat (limited to 'test/CFrontend/2006-09-11-BitfieldRefCrash.c')
-rw-r--r-- | test/CFrontend/2006-09-11-BitfieldRefCrash.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CFrontend/2006-09-11-BitfieldRefCrash.c b/test/CFrontend/2006-09-11-BitfieldRefCrash.c new file mode 100644 index 0000000..d06cc3a --- /dev/null +++ b/test/CFrontend/2006-09-11-BitfieldRefCrash.c @@ -0,0 +1,12 @@ +// RUN: %llvmgcc %s -S -o - +// PR906 + +struct state_struct { + unsigned long long phys_frame: 50; + unsigned valid : 2; +} s; + +int mem_access(struct state_struct *p) { + return p->valid; +} + |