More testcases, which I'll implement later
[oota-llvm.git] / test / Transforms / FunctionResolve / 2003-04-18-ForwardDeclGlobal.ll
index 6d71f665829c1324cc62e54f548235f4d4a0b6d7..a9c4117cee519c8aaab6f0abf3e5adbd53971e04 100644 (file)
@@ -1,13 +1,14 @@
-; RUN: if as < %s | opt -funcresolve -disable-output 2>&1 | grep WARNING
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -funcresolve -disable-output 2>&1 | not grep WARNING
+
 %__popcount_tab = external constant [0 x ubyte]
 %__popcount_tab = constant [4 x ubyte] c"\00\01\01\02"
 
+declare void %foo(ubyte *)
+
 void %test() {
        getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2
        getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2
+       call void %foo(ubyte * getelementptr ([0 x ubyte]* %__popcount_tab, long 0, long 2))
        ret void
 }