]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/unused-functions.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / SemaCXX / unused-functions.cpp
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wunused -verify %s
2
3 static int foo(int x) { return x; }
4
5 template<typename T>
6 T get_from_foo(T y) { return foo(y); }
7
8 int g(int z) { return get_from_foo(z); }
9
10 namespace { void f() = delete; }