1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s struct X { ~X(); }; struct Error { Error(const X&) noexcept; }; void f() { try { throw Error(X()); } catch (...) { } } // CHECK: declare void @__cxa_throw(ptr, ptr addrspace(1), ptr)