[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / return-non-void.c
blobf1ee3722af489a660874d8ee89e26da87027eb0a
1 // RUN: %clang_cc1 -Wreturn-type -std=c99 -fsyntax-only -verify=c99 %s
2 // RUN: %clang_cc1 -Wreturn-type -std=c90 -fsyntax-only -verify=c90 %s
4 int foo(void) { return; } // c99-error {{non-void function 'foo' should return a value}}
5 // c90-error@-1 {{non-void function 'foo' should return a value}}