bolt/deps/llvm-18.1.8/clang/test/SemaCXX/warn-static-function-inheader.cpp
2025-02-14 19:21:04 +01:00

11 lines
271 B
C++

#include "warn-static-function-inheader.h"
// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
static void another(void) { // expected-warning {{function 'another' is not needed and will not be emitted}}
}
template <typename T>
void foo(void) {
thing();
another();
}