Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
48b89590f61575cbf365ba996a2bd1ba1561a4ab
/
.
/
test
/
SemaCXX
/
unused-functions.cpp
blob: f164bf2768461847d43c675f0c2f259c8aab37c3 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++0x -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
);
}
namespace
{
void
f
()
=
delete
;
}