diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-02 23:06:43 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-02 23:06:43 +0000 |
commit | d8968da2c5194f7dc6248ee8e0088be42269e346 (patch) | |
tree | 65a94f0b226cde514db32a4b52ff5bc5885a5f3e /llvm/test/Other | |
parent | Add explicit constructors. Patch by Renato Golin. (diff) | |
download | llvm-project-d8968da2c5194f7dc6248ee8e0088be42269e346.tar.gz llvm-project-d8968da2c5194f7dc6248ee8e0088be42269e346.tar.bz2 llvm-project-d8968da2c5194f7dc6248ee8e0088be42269e346.zip |
Add a lint check for indirectbr with no successors.
llvm-svn: 110074
Diffstat (limited to 'llvm/test/Other')
-rw-r--r-- | llvm/test/Other/lint.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/Other/lint.ll b/llvm/test/Other/lint.ll index dee3d11d2fb5..fcef7ee2d571 100644 --- a/llvm/test/Other/lint.ll +++ b/llvm/test/Other/lint.ll @@ -161,5 +161,7 @@ declare i32 @nonstruct_callee() nounwind define void @struct_caller() nounwind { entry: call %struct bitcast (i32 ()* @foo to %struct ()*)() - ret void + + ; CHECK: Undefined behavior: indirectbr with no destinations + indirectbr i8* null, [] } |