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
/
SemaCXX
/
warn-unused-private-field-delayed-template.cpp
blob
7cafcca643f511c3aeb60099629a27db99419e91
1
// RUN: %clang_cc1 -fsyntax-only -fdelayed-template-parsing -Wunused-private-field -Wused-but-marked-unused -Wno-uninitialized -verify -std=c++11 %s
2
// expected-no-diagnostics
3
4
class
EverythingMayBeUsed
{
5
int
x
;
6
public
:
7
template
<
class
T
>
8
void
f
() {
9
x
=
0
;
10
}
11
};