repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
throw-expression-typeinfo-in-address-space.cpp
blob
d8c23d427e67a350c6b51f96b2b75bf78b3f6216
1
// RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
2
3
struct
X
{
4
~
X
();
5
};
6
7
struct
Error
{
8
Error
(
const
X
&)
noexcept
;
9
};
10
11
void
f
() {
12
try
{
13
throw
Error
(
X
());
14
}
catch
(...) { }
15
}
16
17
// CHECK: declare void @__cxa_throw(ptr, ptr addrspace(1), ptr)