[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / CodeGenCXX / throw-expression-typeinfo-in-address-space.cpp
blob0fb553de4485af0d11d072fc661d04d222bbde75
1 // RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -triple spirv64-amd-amdhsa -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s --check-prefix=WITH-NONZERO-DEFAULT-AS
4 struct X {
5 ~X();
6 };
8 struct Error {
9 Error(const X&) noexcept;
12 void f() {
13 try {
14 throw Error(X());
15 } catch (...) { }
18 // CHECK: declare void @__cxa_throw(ptr, ptr addrspace(1), ptr)
19 // WITH-NONZERO-DEFAULT-AS: declare{{.*}} void @__cxa_throw(ptr addrspace(4), ptr addrspace(1), ptr addrspace(4))