Lauro Ramos Venancio | 3b8c22d | 2008-01-22 20:17:04 +0000 | [diff] [blame^] | 1 | // RUN: clang %s -emit-llvm > %t1 |
2 | // RUN: grep "shl i32 %tmp, 19" %t1 && | ||||
3 | // RUN: grep "ashr i32 %tmp1, 19" %t1 && | ||||
4 | // RUN: grep "shl i16 %tmp4, 1" %t1 && | ||||
5 | // RUN: grep "lshr i16 %tmp5, 9" %t1 | ||||
6 | // Test bitfield access | ||||
7 | |||||
8 | |||||
9 | struct STestB1 { int a:13; char b; unsigned short c:7;} stb1; | ||||
10 | |||||
11 | int f() { | ||||
12 | return stb1.a + stb1.b + stb1.c; | ||||
13 | } |