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
/
CXX
/
dcl.decl
/
dcl.init
/
dcl.init.ref
/
basic.cpp
blob
2c9cd88e40bfd793b1e3cd820c53eb4f47b45c37
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
// PR5787
5
class
C
{
6
public
:
7
~
C
() {}
8
};
9
10
template
<
typename T
>
11
class
E
{
12
public
:
13
E
&
Foo
(
const
C
&);
14
E
&
Bar
() {
return
Foo
(
C
()); }
15
};
16
17
void
Test
() {
18
E
<
int
>
e
;
19
e
.
Bar
();
20
}