Duncan Sands | e2940c3 | 2008-01-04 13:15:39 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S -o - %s |
2 | // PR1386 | ||||
3 | #include <stdint.h> | ||||
4 | |||||
5 | struct X { | ||||
6 | unsigned char pad : 4; | ||||
7 | uint64_t a : 64; | ||||
8 | } __attribute__((packed)) x; | ||||
9 | |||||
10 | uint64_t f(void) | ||||
11 | { | ||||
12 | return x.a; | ||||
13 | } |