[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / ptrauth-weak_import.c
blob1f53747a2640e0d971d55d4f2656fb686205b271
1 // RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
4 extern void foo() __attribute__((weak_import));
6 // CHECK: define {{(dso_local )?}}void @bar()
7 // CHECK: [[TMP1:%.*]] = icmp ne ptr ptrauth (ptr @foo, i32 0), null
8 // CHECK: br i1 [[TMP1]], label
9 void bar() {
10 if (foo)
11 foo();