diff options
-rw-r--r-- | test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll b/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll new file mode 100644 index 0000000000..2a35638bf4 --- /dev/null +++ b/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll @@ -0,0 +1,12 @@ +; RUN: analyze %s -datastructure-gc -dsgc-check-flags=G:GIM -dsgc-dspass=bu + + +%S = type { double, int } + +%G = external global %S + +void %main() { + %b = getelementptr %S* %G, long 0, ubyte 0 + store double 0.1, double* %b + ret void +} |