blob: 73febea4633d212ae28e83594d0504f13a73677e (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang -fcatch-undefined-behavior %s -O3 -o %t && %t 2>&1 | FileCheck %s
// CHECK: missing_return.cpp:4:5: fatal error: execution reached the end of a value-returning function without returning a value
int f() {
}
int main(int, char **argv) {
return f();
}
|