--- /dev/null
+; Test const pointer refs & forward references
+
+%t3 = global int * %t1 ;; Forward reference
+%t1 = global int 4
+
--- /dev/null
+global int* cast (float* %0 to int*) ;; Forward numeric reference
+global float* %0 ;; Duplicate forward numeric reference
+global float 0.0
+
+%array = constant [2 x int] [ int 12, int 52 ]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0) ;; int* &%array[0][0]
+
--- /dev/null
+%sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant
+%somestr = constant [11x sbyte] c"hello world"
+
--- /dev/null
+%fptr = global void() * %f ;; Forward ref method defn
+declare void "f"() ;; External method
+
Output/%.to: Output/%.c
- gcc -c $< -o $@ || \
+ gcc -c -W -Wall $< -o $@ || \
(rm -f $@; $(FAILURE) $@ )
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
--- /dev/null
+; Test const pointer refs & forward references
+
+%t3 = global int * %t1 ;; Forward reference
+%t1 = global int 4
+
--- /dev/null
+global int* cast (float* %0 to int*) ;; Forward numeric reference
+global float* %0 ;; Duplicate forward numeric reference
+global float 0.0
+
+%array = constant [2 x int] [ int 12, int 52 ]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0) ;; int* &%array[0][0]
+
--- /dev/null
+%sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant
+%somestr = constant [11x sbyte] c"hello world"
+
--- /dev/null
+%fptr = global void() * %f ;; Forward ref method defn
+declare void "f"() ;; External method
+