blob: e1c7a38a12e6f7e72a475baa8113b7a4b372915d [file] [log] [blame]
Eric Christopherb0257342011-07-26 21:42:32 +00001// RUN: %clang_cc1 -emit-llvm -o - %s
2// PR1386
Eric Christopher54562ec2011-07-26 22:19:01 +00003typedef unsigned long long uint64_t;
Eric Christopherb0257342011-07-26 21:42:32 +00004struct X {
5 unsigned char pad : 4;
6 uint64_t a : 64;
7} __attribute__((packed)) x;
8
9uint64_t f(void)
10{
11 return x.a;
12}