return.c revision 2c0ccd045514ae4dc951fb45b7c29216ba109bf7
1// RUN: clang-cc %s -fsyntax-only -verify
2
3// clang emits the following warning by default.
4// With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the
5// following warning.
6int t14() {
7  return; // expected-warning {{non-void function 't14' should return a value}}
8}
9
10