mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
4b5ca9a222
Summary: This fixes PR21235. Test Plan: Includes an automated test. Reviewers: hansw Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5718 llvm-svn: 219551
12 lines
274 B
C++
12 lines
274 B
C++
// 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;
|
|
}
|
|
};
|