Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
59a9881ab252c80735d6440bd9ca0fbac252e6a8
/
.
/
test
/
SemaCXX
/
unused-functions.cpp
blob: 35980820389237a5cb13a870246087eb520ae69d [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++11 -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
;
}