xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/24-bit.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN:  %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O0 -o - %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc static union ibtt2
4*0a6a1f1dSLionel Sambuc {
5*0a6a1f1dSLionel Sambuc   struct ibtt0 { signed ibt0:10; unsigned short ibt1; } ibt5;
6*0a6a1f1dSLionel Sambuc   struct ibtt1 { signed ibt2:3; signed ibt3:9; signed ibt4:9; } ibt6;
7*0a6a1f1dSLionel Sambuc } ibt15 = {{267, 15266}};
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc void callee_ibt0f(union ibtt2 ibtp5);
10*0a6a1f1dSLionel Sambuc 
test(void)11*0a6a1f1dSLionel Sambuc void test(void) {
12*0a6a1f1dSLionel Sambuc // CHECK: = load i32*
13*0a6a1f1dSLionel Sambuc   callee_ibt0f(ibt15);
14*0a6a1f1dSLionel Sambuc }
15