Eric Christopher | b025734 | 2011-07-26 21:42:32 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s |
2 | // PR1386 | ||||
Eric Christopher | 54562ec | 2011-07-26 22:19:01 +0000 | [diff] [blame] | 3 | typedef unsigned long long uint64_t; |
Eric Christopher | b025734 | 2011-07-26 21:42:32 +0000 | [diff] [blame] | 4 | struct X { |
5 | unsigned char pad : 4; | ||||
6 | uint64_t a : 64; | ||||
7 | } __attribute__((packed)) x; | ||||
8 | |||||
9 | uint64_t f(void) | ||||
10 | { | ||||
11 | return x.a; | ||||
12 | } |