check for correct usage of the byval attribute
[oota-llvm.git] / test / C++Frontend / 2005-02-14-BitFieldOffset.cpp
1 // RUN: %llvmgxx %s -S -o - | not grep {i32 6}
2
3 struct QVectorTypedData {
4     int size;
5     unsigned int sharable : 1;
6     unsigned short array[1];
7 };
8
9 void foo(QVectorTypedData *X) {
10   X->array[0] = 123;
11 }