[llvm] r222921 - Add a testcase reduced from clang lto bootstrap on OS X.
Rafael Espindola
rafael.espindola at gmail.com
Fri Nov 28 07:45:31 PST 2014
Author: rafael
Date: Fri Nov 28 09:45:31 2014
New Revision: 222921
URL: http://llvm.org/viewvc/llvm-project?rev=222921&view=rev
Log:
Add a testcase reduced from clang lto bootstrap on OS X.
Added:
llvm/trunk/test/Linker/Inputs/opaque.ll
llvm/trunk/test/Linker/opaque.ll
Added: llvm/trunk/test/Linker/Inputs/opaque.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/opaque.ll?rev=222921&view=auto
==============================================================================
--- llvm/trunk/test/Linker/Inputs/opaque.ll (added)
+++ llvm/trunk/test/Linker/Inputs/opaque.ll Fri Nov 28 09:45:31 2014
@@ -0,0 +1,13 @@
+%A = type { }
+%B = type { %D, %E, %B* }
+
+%D = type { %E }
+%E = type opaque
+
+ at g2 = external global %A
+ at g3 = external global %B
+
+define void @f1() {
+ getelementptr %A* null, i32 0
+ ret void
+}
Added: llvm/trunk/test/Linker/opaque.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/opaque.ll?rev=222921&view=auto
==============================================================================
--- llvm/trunk/test/Linker/opaque.ll (added)
+++ llvm/trunk/test/Linker/opaque.ll Fri Nov 28 09:45:31 2014
@@ -0,0 +1,21 @@
+; RUN: llvm-link %p/opaque.ll %p/Inputs/opaque.ll -S -o - | FileCheck %s
+
+; CHECK-DAG: %A = type {}
+; CHECK-DAG: %B = type { %C, %C, %B* }
+; CHECK-DAG: %B.1 = type { %D, %E, %B.1* }
+; CHECK-DAG: %C = type { %A }
+; CHECK-DAG: %D = type { %E }
+; CHECK-DAG: %E = type opaque
+
+; CHECK-DAG: @g1 = external global %B
+; CHECK-DAG: @g2 = external global %A
+; CHECK-DAG: @g3 = external global %B.1
+
+; CHECK-DAG: getelementptr %A* null, i32 0
+
+%A = type opaque
+%B = type { %C, %C, %B* }
+
+%C = type { %A }
+
+ at g1 = external global %B
More information about the llvm-commits
mailing list