summaryrefslogtreecommitdiff
path: root/test/ubsan/TestCases/Misc/Inputs
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-12-21 00:10:36 +0000
committerVedant Kumar <vsk@apple.com>2017-12-21 00:10:36 +0000
commit56efba10eb0af3c8bd14d0820288700306425b6e (patch)
tree283f3d8d6ad8d29bef47523e3fd5fad26f71e464 /test/ubsan/TestCases/Misc/Inputs
parent1d14da803d4e2743ba9f86d3859b6f6358406cf7 (diff)
[ubsan] Diagnose noreturn functions which return (compiler-rt)
This is paired with the clang change: https://reviews.llvm.org/D40698 Differential Revision: https://reviews.llvm.org/D40700 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@321232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan/TestCases/Misc/Inputs')
-rw-r--r--test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c b/test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c
new file mode 100644
index 000000000..826ea0ca4
--- /dev/null
+++ b/test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c
@@ -0,0 +1 @@
+void returns_unexpectedly() {}