brintos

brintos / llvm-project-archived public Read only

0
0
Text · 271 B · 034e65e Raw
12 lines · cpp
1#include "warn-static-function-inheader.h"2// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s3 4static void another(void) { // expected-warning {{function 'another' is not needed and will not be emitted}}5}6 7template <typename T>8void foo(void) {9  thing();10  another();11}12