Initialize HasMetadata to zero.
[llvm/avr.git] / test / FrontendC++ / 2007-04-05-PackedBitFieldsOverlap-2.cpp
blob55da1a6ab406328302812cbc41faef2c5fd6bdf2
1 // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
3 #ifdef PACKED
4 #define P __attribute__((packed))
5 #else
6 #define P
7 #endif
9 struct P M_Packed {
10 unsigned long sorted : 1;
11 unsigned long from_array : 1;
12 unsigned long mixed_encoding : 1;
13 unsigned long encoding : 8;
14 unsigned long count : 21;
16 };
18 struct M_Packed sM_Packed;
20 int testM_Packed (void) {
21 struct M_Packed x;
22 return (x.count != 0);