clang/test/Sema/return-non-void.c
raw| 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 |
| 3 | |
| 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}} |