1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

New testcase for the verifier

llvm-svn: 2242
This commit is contained in:
Chris Lattner 2002-04-13 22:46:24 +00:00
parent c0505e8d4e
commit c48a0efddc
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
; Verify the the operand type of the ret instructions in a function match the
; delcared return type of the function they live in.
;
implementation
uint "testfunc"()
begin
ret int* null
end

View File

@ -0,0 +1,19 @@
# test/Regression/Verifier/Makefile
#
# This directory contains regression tests for the LLVM verifier pass. Basically
# all of these LLVM source files are invalid programs that should be marked as
# such by the verifier
LEVEL = ../../..
include $(LEVEL)/test/Makefile.tests
TESTS := $(wildcard *.ll)
all:: $(addprefix Output/, $(TESTS:%.ll=%.ntbc))
Output/%.ntbc: %.ll $(LAS) Output/.dir
@echo "======== Verifying $< ==========="
if $(LAS) -f $< -o /dev/null; \
then $(FAILURE) $@; exit 1; \
else touch $@; exit 0;\
fi