1 // REQUIRES: bpf-registered-target
2 // RUN: %clang_cc1 -triple bpf -O2 -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s
5 unsigned char bar_char(void);
10 if (bar_bool() != 1) return 0; else return 1;
12 // CHECK: %call = call i1 @bar_bool()
14 if (bar_char() != 10) return 0; else return 1;
16 // CHECK: %call = call i8 @bar_char()
18 if (bar_short() != 10) return 0; else return 1;
20 // CHECK: %call = call i16 @bar_short()
22 if (bar_int() != 10) return 0; else return 1;
24 // CHECK: %call = call i32 @bar_int()