summaryrefslogtreecommitdiff
path: root/test/Verifier/SelfReferential.ll
blob: 1f7b837b32f589b5a281e727ab08b1e6ce72a0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not llvm-as -f %s -o /dev/null

; Test that self referential instructions are not allowed

implementation

void "test"()
begin
	%A = add int %A, 0
	ret void
end