Sign in
llvm
/
clang
/
1571f048734190c5ed03d1a6083e579ec7b5801f
/
.
/
test
/
SemaCXX
/
return.cpp
blob: e682fdfb500921dfec01f8356376f588e9038443 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -fsyntax-only -verify
int
test1
()
{
throw
;
}
// PR5071
template
<
typename
T
>
T f
()
{
}
template
<
typename
T
>
void
g
(
T t
)
{
return
t
*
2
;
// okay
}
template
<
typename
T
>
T h
()
{
return
17
;
}