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