From a3a388be36561867c070ca0d75393979b6e114cf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Jun 2003 18:17:20 +0000 Subject: [PATCH] New, smaller testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6980 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../DSGraph/2003-06-29-NodeCollapsing2.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll diff --git a/test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll b/test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll new file mode 100644 index 00000000000..99aae03adf6 --- /dev/null +++ b/test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll @@ -0,0 +1,18 @@ +; 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 +; +%T = type { int} + +int %main() { + %A = alloca %T + %B = alloca { %T } + %C = alloca %T* + %Bp = getelementptr { %T }* %B, long 0, ubyte 0 + %Ap = getelementptr %T* %A, long 0, ubyte 0 + + store %T* %A, %T** %C + store %T* %Bp, %T** %C ; This store was causing merging to happen! + ret int 0 +} -- 2.34.1