New testcase for DSA which is improperly collapsed!
authorChris Lattner <sabre@nondot.org>
Sun, 2 Nov 2003 20:43:10 +0000 (20:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Nov 2003 20:43:10 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9657 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll [new file with mode: 0644]

diff --git a/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll b/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
new file mode 100644 (file)
index 0000000..37f5038
--- /dev/null
@@ -0,0 +1,20 @@
+; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the 
+; graph checker.
+;
+; RUN: analyze %s -datastructure-gc -dsgc-abort-if-any-collapsed
+;
+
+%S = type { double, int }
+%T = type { double, int, sbyte }
+
+void %test() {
+       %A = alloca double*
+       %B = alloca %S
+       %C = alloca %T
+       %b = getelementptr %S* %B, long 0, ubyte 0
+       %c = getelementptr %T* %C, long 0, ubyte 0
+
+       store double* %b, double** %A
+       store double* %c, double** %A
+       ret void
+}