aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-02 20:43:10 +0000
committerChris Lattner <sabre@nondot.org>2003-11-02 20:43:10 +0000
commitdab02aeada53242748240e78eed17197a7e50b36 (patch)
tree547dde52de4b2901213fbc7c67d5e8dee4094d3f /test
parentfc07a3473ab76e17725f3dde6cbf5df519b763b1 (diff)
downloadexternal_llvm-dab02aeada53242748240e78eed17197a7e50b36.zip
external_llvm-dab02aeada53242748240e78eed17197a7e50b36.tar.gz
external_llvm-dab02aeada53242748240e78eed17197a7e50b36.tar.bz2
New testcase for DSA which is improperly collapsed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll b/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
new file mode 100644
index 0000000..37f5038
--- /dev/null
+++ b/test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
@@ -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
+}