12 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wunused -verify %s2// expected-no-diagnostics3 4static int foo(int x) { return x; }5 6template<typename T>7T get_from_foo(T y) { return foo(y); }8 9int g(int z) { return get_from_foo(z); }10 11namespace { void f() = delete; }12