blob: 7377b8292d56ff81fc603fada7b8fc14d5831606 [file] [log] [blame]
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
#ifdef PACKED
// This is an example where size of Packed struct is smaller then
// the size of bit field type.
#define P __attribute__((packed))
#define P
struct P M_Packed {
unsigned long long X:50;
unsigned Y:2;
struct M_Packed sM_Packed;
int testM_Packed (void) {
struct M_Packed x;
return (0 != x.Y);
int testM_Packed2 (void) {
struct M_Packed x;
return (0 != x.X);