annotate clang/test/CodeGenObjC/bitfield_encoding.m @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900 (2022-11-09)
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
anatofuz
parents:
diff changeset
2 // RUN: grep "ib1b14" %t | count 1
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-runtime=gcc -emit-llvm -o %t %s
anatofuz
parents:
diff changeset
4 // RUN: grep "ib32i1b33i14" %t | count 1
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 struct foo{
anatofuz
parents:
diff changeset
7 int a;
anatofuz
parents:
diff changeset
8 int b:1;
anatofuz
parents:
diff changeset
9 int c:14;
anatofuz
parents:
diff changeset
10 };
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 const char *encoding = @encode(struct foo);