Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / unused-functions.cpp
blobd05ff4db605599acb8d6aa77fb3057c06f90a4a0
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wunused -verify %s
2 // expected-no-diagnostics
4 static int foo(int x) { return x; }
6 template<typename T>
7 T get_from_foo(T y) { return foo(y); }
9 int g(int z) { return get_from_foo(z); }
11 namespace { void f() = delete; }