xref: /aosp_15_r20/external/clang/test/CodeGenObjC/bitfield_encoding.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
2*67e74705SXin Li// RUN: grep "ib1b14" %t | count 1
3*67e74705SXin Li// RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-runtime=gcc -emit-llvm -o %t %s
4*67e74705SXin Li// RUN: grep "ib32i1b33i14" %t | count 1
5*67e74705SXin Li
6*67e74705SXin Listruct foo{
7*67e74705SXin Li	int a;
8*67e74705SXin Li	int b:1;
9*67e74705SXin Li	int c:14;
10*67e74705SXin Li};
11*67e74705SXin Li
12*67e74705SXin Liconst char *encoding = @encode(struct foo);
13