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
/
temp
/
temp.res
/
temp.local
/
p9.cpp
blob
9ca8d8877d7de2e5fe01bf89d205bfb953c3ec6a
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
struct
A
{
3
struct
B
{
void
f
(); };
4
int
a
;
5
int
Y
;
6
};
7
8
template
<
class
B
,
class
a
>
struct
X
:
A
{
9
B b
;
// A's B
10
a c
;
// expected-error{{unknown type name 'a'}}
11
12
void
g
() {
13
b
.
g
();
// expected-error{{no member named 'g' in 'A::B'}}
14
}
15
};