summaryrefslogtreecommitdiff
path: root/lib/ubsan/lit_tests/Misc/missing_return.cpp
blob: 7da238e25dca60af9f1726e90678ca459d9bcd4f (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clangxx -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();
}