diff options
author | Eric Christopher <echristo@apple.com> | 2011-08-19 23:41:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-08-19 23:41:35 +0000 |
commit | 3bf8310d42bad4dd2c49502f61caeb3cac376235 (patch) | |
tree | f4a326f43d156b764528f649eadc160485d32fa7 /clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp | |
parent | 7d4cee4b0269ef03a016d51a46819cce6a56a4d5 (diff) | |
download | bcm5719-llvm-3bf8310d42bad4dd2c49502f61caeb3cac376235.tar.gz bcm5719-llvm-3bf8310d42bad4dd2c49502f61caeb3cac376235.zip |
Migrate, FileCheckize and update:
2005-02-11-AnonymousUnion.cpp
2005-02-13-BadDynamicInit.cpp
2005-02-14-BitFieldOffset.cpp
2005-02-19-BitfieldStructCrash.cpp
2005-02-19-UnnamedVirtualThunkArgument.cpp
2005-02-20-BrokenReferenceTest.cpp
2006-03-01-GimplifyCrash.cpp
2006-03-06-C++RecurseCrash.cpp
2006-09-12-OpaqueStructCrash.cpp
2006-10-30-ClassBitfield.cpp
2006-11-20-GlobalSymbols.cpp
2006-11-20-GlobalSymbols.ll
2006-11-30-ConstantExprCrash.cpp
from llvm/test/FrontendC++.
llvm-svn: 138148
Diffstat (limited to 'clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp b/clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp new file mode 100644 index 00000000000..c37f5dce32b --- /dev/null +++ b/clang/test/CodeGenCXX/2005-02-14-BitFieldOffset.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s + +// CHECK-NOT: i32 6 +struct QVectorTypedData { + int size; + unsigned int sharable : 1; + unsigned short array[1]; +}; + +void foo(QVectorTypedData *X) { + X->array[0] = 123; +} |