New testcase
authorChris Lattner <sabre@nondot.org>
Thu, 3 Jul 2003 06:29:15 +0000 (06:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Jul 2003 06:29:15 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7092 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll [new file with mode: 0644]
test/Transforms/BasicAA/2003-07-03-BasicAACrash.ll [new file with mode: 0644]

diff --git a/test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll b/test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll
new file mode 100644 (file)
index 0000000..785759d
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: as < %s | opt -basicaa -aa-eval -disable-output
+
+       %struct..RefPoint = type { int, { uint, ushort, ushort } }
+       %struct..RefRect = type { %struct..RefPoint, %struct..RefPoint }
+
+implementation   ; Functions:
+
+uint %BMT_CommitPartDrawObj() {
+       %tmp.19111 = getelementptr %struct..RefRect* null, long 0, ubyte 0, ubyte 1, ubyte 2
+       %tmp.20311 = getelementptr %struct..RefRect* null, long 0, ubyte 1, ubyte 1, ubyte 2
+       ret uint 0
+}
diff --git a/test/Transforms/BasicAA/2003-07-03-BasicAACrash.ll b/test/Transforms/BasicAA/2003-07-03-BasicAACrash.ll
new file mode 100644 (file)
index 0000000..785759d
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: as < %s | opt -basicaa -aa-eval -disable-output
+
+       %struct..RefPoint = type { int, { uint, ushort, ushort } }
+       %struct..RefRect = type { %struct..RefPoint, %struct..RefPoint }
+
+implementation   ; Functions:
+
+uint %BMT_CommitPartDrawObj() {
+       %tmp.19111 = getelementptr %struct..RefRect* null, long 0, ubyte 0, ubyte 1, ubyte 2
+       %tmp.20311 = getelementptr %struct..RefRect* null, long 0, ubyte 1, ubyte 1, ubyte 2
+       ret uint 0
+}