Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / warn-unused-private-field-delayed-template.cpp
blob7cafcca643f511c3aeb60099629a27db99419e91
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
4 class EverythingMayBeUsed {
5 int x;
6 public:
7 template <class T>
8 void f() {
9 x = 0;