[llvm-commits] CVS: llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalResolveHack.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 21 22:36:11 PDT 2003
Changes in directory llvm/test/Regression/Transforms/FunctionResolve:
2003-10-21-GlobalResolveHack.ll added (r1.1)
---
Log message:
New testcase for fun hack that is absolutely necessary for the C++ stdlib.
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalResolveHack.ll
diff -c /dev/null llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalResolveHack.ll:1.1
*** /dev/null Tue Oct 21 22:35:28 2003
--- llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalResolveHack.ll Tue Oct 21 22:35:18 2003
***************
*** 0 ****
--- 1,14 ----
+ ; This tests a hack put into place specifically for the C++ libstdc++ library.
+ ; It uses an ugly hack which is cleaned up by the funcresolve pass.
+
+ ; RUN: llvm-as < %s | opt -funcresolve | llvm-dis | grep %X | grep '{'
+
+ %X = external global { int }
+ %X = global [ 4 x sbyte ] zeroinitializer
+
+ implementation
+
+ int* %test() {
+ %P = getelementptr {int}* %X, long 0, ubyte 0
+ ret int* %P
+ }
More information about the llvm-commits
mailing list