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