2002-04-13-RetTypes.ll 273 B

12345678910
  1. ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
  2. ; Verify the operand type of the ret instructions in a function match the
  3. ; declared return type of the function they live in.
  4. ; CHECK: value doesn't match function result type 'i32'
  5. ;
  6. define i32 @testfunc() {
  7. ret i32* null
  8. }