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
/
SemaTemplate
/
instantiation-default-3.cpp
blob
76189ea90bfb6fbb63ed2987c968f62dcaf35129
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
template
<
typename T
>
struct
A
{ };
5
6
template
<
typename T
,
typename U
=
A
<
T
*> >
7
struct
B
:
U
{ };
8
9
template
<>
10
struct
A
<
int
*> {
11
void
foo
();
12
};
13
14
template
<>
15
struct
A
<
float
*> {
16
void
bar
();
17
};
18
19
void
test
(
B
<
int
> *
b1
,
B
<
float
> *
b2
) {
20
b1
->
foo
();
21
b2
->
bar
();
22
}