blob: d8c23d427e67a350c6b51f96b2b75bf78b3f6216 [file] [log] [blame]
// 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)