summaryrefslogtreecommitdiff
path: root/lib/ubsan/lit_tests/Misc/missing_return.cpp
blob: 9997b8386f21b0d4a13794ce00c9f1628afd82d1 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang -fsanitize=return %s -O3 -o %t && %t 2>&1 | FileCheck %s

// CHECK: missing_return.cpp:4:5: runtime error: execution reached the end of a value-returning function without returning a value
int f() {
}

int main(int, char **argv) {
  return f();
}