[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / CodeGenCXX / ptrauth.cpp
blobb0c069f43969bb1bce431431191c689522d699c9
1 // RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -emit-llvm -std=c++11 -fexceptions -fcxx-exceptions -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls -emit-llvm -std=c++11 -fexceptions -fcxx-exceptions -o - %s | FileCheck %s
4 void f(void);
5 auto &f_ref = f;
7 // CHECK: define {{(dso_local )?}}void @_Z1gv(
8 // CHECK: call void ptrauth (ptr @_Z1fv, i32 0)() [ "ptrauth"(i32 0, i64 0) ]
10 void g() { f_ref(); }
12 void foo1();
14 void test_terminate() noexcept {
15 foo1();
18 // CHECK: define {{(dso_local )?}}void @_ZSt9terminatev() #[[ATTR4:.*]] {
20 namespace std {
21 void terminate() noexcept {
25 // CHECK: attributes #[[ATTR4]] = {{{.*}}"ptrauth-calls"{{.*}}}