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
/
constructor-convert.cpp
blob
7feeaa900af6e06a066d8d0a1e906ee52a25a43c
1
// RUN: %clang_cc1 -emit-llvm -o - %s
2
3
// PR5775
4
class
Twine
{
5
public
:
6
Twine
(
const char
*
Str
) { }
7
};
8
9
static void
error
(
const
Twine
&
Message
) {}
10
11
template
<
typename
>
12
struct
opt_storage
{
13
void
f
() {
14
error
(
"cl::location(x) specified more than once!"
);
15
}
16
};
17
18
void
f
(
opt_storage
<
int
>
o
) {
19
o
.
f
();
20
}