summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/unused-functions.cpp
blob: cefa9e118a48e04e4ddfcd89c5b27e0cf6faab7a (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -Wunused -verify %s

static int foo(int x) { return x; }

template<typename T>
T get_from_foo(T y) { return foo(y); }

int g(int z) { return get_from_foo(z); }
OpenPOWER on IntegriCloud