[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / throw-expression-typeinfo-in-address-space.cpp
blobd8c23d427e67a350c6b51f96b2b75bf78b3f6216
1 // RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
3 struct X {
4 ~X();
5 };
7 struct Error {
8 Error(const X&) noexcept;
9 };
11 void f() {
12 try {
13 throw Error(X());
14 } catch (...) { }
17 // CHECK: declare void @__cxa_throw(ptr, ptr addrspace(1), ptr)