Debian Codegraph @

clang/test/CodeGenObjC/bitfield_encoding.m

raw
1 // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
2 // RUN: grep "ib1b14" %t | count 1
3 // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-runtime=gcc -emit-llvm -o %t %s
4 // RUN: grep "ib32i1b33i14" %t | count 1
5
6 struct foo{
7 int a;
8 int b:1;
9 int c:14;
10 };
11
12 const char *encoding = @encode(struct foo);