Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / warn-static-function-inheader.cpp
blob034e65eb1cbb6922cccad0830ac697984799105d
1 #include "warn-static-function-inheader.h"
2 // RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
4 static void another(void) { // expected-warning {{function 'another' is not needed and will not be emitted}}
7 template <typename T>
8 void foo(void) {
9 thing();
10 another();