xref: /llvm-project/clang/test/SemaCXX/warn-static-function-inheader.cpp (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 #include "warn-static-function-inheader.h"
2 // RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
3 
another(void)4 static void another(void) { // expected-warning {{function 'another' is not needed and will not be emitted}}
5 }
6 
7 template <typename T>
foo(void)8 void foo(void) {
9   thing();
10   another();
11 }
12