aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/throw-expression-typeinfo-in-address-space.cpp
blob: d8c23d427e67a350c6b51f96b2b75bf78b3f6216 (plain)
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)