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