Another test that uses -m64. Here too it looks like it can be
[oota-llvm.git] / test / Other / lint.ll
index 9a10abf3c70320a4adb2de5ffe61a4056c26a5d8..fcef7ee2d57133779ee1f2134fc8265ed5bf6f2e 100644 (file)
@@ -154,3 +154,14 @@ exit:
   %x = volatile load i32* %t3
   br label %exit
 }
+
+; CHECK: Call return type mismatches callee return type
+%struct = type { double, double }
+declare i32 @nonstruct_callee() nounwind
+define void @struct_caller() nounwind {
+entry:
+  call %struct bitcast (i32 ()* @foo to %struct ()*)()
+
+  ; CHECK: Undefined behavior: indirectbr with no destinations
+  indirectbr i8* null, []
+}