xref: /aosp_15_r20/external/llvm/test/Verifier/2008-11-15-RetVoid.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; CHECK: value doesn't match function result type 'void'
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
5*9880d681SAndroid Build Coastguard Worker  ret i32 0
6*9880d681SAndroid Build Coastguard Worker}
7