[Clang] Don't assume unexpanded PackExpansions' size when expanding packs (#120380)
[llvm-project.git] / clang / test / CodeGen / bpf-abiinfo.c
blob366e8003f455723aa819cf7acc027fe064b7bf95
1 // REQUIRES: bpf-registered-target
2 // RUN: %clang_cc1 -triple bpf -O2 -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s
4 _Bool bar_bool(void);
5 unsigned char bar_char(void);
6 short bar_short(void);
7 int bar_int(void);
9 int foo_bool(void) {
10 if (bar_bool() != 1) return 0; else return 1;
12 // CHECK: %call = call i1 @bar_bool()
13 int foo_char(void) {
14 if (bar_char() != 10) return 0; else return 1;
16 // CHECK: %call = call i8 @bar_char()
17 int foo_short(void) {
18 if (bar_short() != 10) return 0; else return 1;
20 // CHECK: %call = call i16 @bar_short()
21 int foo_int(void) {
22 if (bar_int() != 10) return 0; else return 1;
24 // CHECK: %call = call i32 @bar_int()