From 4c10375785fc03f4fbc4ca41a14a8d864d440fe2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Mar 2005 22:07:15 +0000 Subject: [PATCH] New testcase, the BU pass is marking the global complete in the globals graph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20772 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll 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 00000000000..2a35638bf44 --- /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 +}