diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-04 23:52:29 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-04 23:52:29 +0000 |
commit | 9f9e5826f2863ece1d25bf251e323a73857a5be6 (patch) | |
tree | 9fb36c69a078bf66873ca13720b8957761fc29b4 /clang/tools/c-index-test/c-index-test.c | |
parent | 4d6cd886f5e6ad05ec5284f19b22457d5c16fe63 (diff) | |
download | bcm5719-llvm-9f9e5826f2863ece1d25bf251e323a73857a5be6.tar.gz bcm5719-llvm-9f9e5826f2863ece1d25bf251e323a73857a5be6.zip |
If we flow off the end of a value-returning function:
- outside C++, return undef (behavior is not undefined unless the value is used)
- in C++, with -fcatch-undefined-behavior, perform an appropriate trap
- in C++, produce an 'unreachable' (behavior is undefined immediately)
llvm-svn: 165273
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions