diff --git a/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx b/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx new file mode 100644 index 00000000000..7342f21bd7b --- /dev/null +++ b/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx @@ -0,0 +1,13 @@ +; RUN: if as < %s | dis | grep cast +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +%GlobalArray = global [1 x int] [ int 0 ] ; <[1 x int]*> [#uses=1] + +implementation ; Functions: + +int* %foo(...) { + ret int* cast (long add (long cast ([1 x int]* %GlobalArray to long), long -4) to int*) +} +