Fix spelling
[oota-llvm.git] / test / Assembler / 2002-04-29-NameBinding.llx
1 ; There should be NO references to the global v1.  The local v1 should
2 ; have all of the references!
3 ;
4 ; Check by running globaldce, which will remove the constant if there are
5 ; no references to it!
6
7 ; RUN: if as < %s | opt -globaldce | dis | grep constant
8 ; RUN: then exit 1
9 ; RUN: else exit 0
10 ; RUN: fi
11 ;
12         
13 %v1 = internal constant int 5
14
15 implementation
16
17 int "createtask"()
18 begin
19         %v1 = alloca int           ;; Alloca should have one use!
20         %reg112 = load int* %v1    ;; This load should not use the global!
21         ret int %reg112
22 end
23