Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
e1919d41a31f0d587373caee962a5a2f2a76478a
/
.
/
test
/
Sema
/
function-return.c
blob: 8af074e0a0eee8eb4bfe010845e867b8b11d3de4 [
file
] [
log
] [
blame
]
// RUN: clang %s -fsyntax-only -verify -pedantic
// PR2790
void
f1
()
{
return
0
;
// expected-warning {{void function 'f1' should not return a value}}
}
int
f2
()
{
return
;
// expected-warning {{non-void function 'f2' should return a value}}
}