Don't check for null after calling COFFObjectFile::toSec.
[oota-llvm.git] / test / LTO / cfi_endproc.ll
index 11646c73ecf1e58395fe094a89dba4d78666d6f8..a5cc649fc863074d2bb32d74ea652a41bc668462 100644 (file)
@@ -24,3 +24,14 @@ define i32 @main(i32 %argc, i8** %argv) {
   call void @PR14512()
   ret i32 0
 }
+
+; RUN: llvm-lto -o %t -dso-symbol=zed1 -dso-symbol=zed2 %t1 -disable-opt
+; RUN: llvm-nm %t | FileCheck %s -check-prefix=ZED1_AND_ZED2
+; ZED1_AND_ZED2: V zed1
+@zed1 = linkonce_odr global i32 42
+define i32* @get_zed1() {
+  ret i32* @zed1
+}
+
+; ZED1_AND_ZED2: d zed2
+@zed2 = linkonce_odr unnamed_addr global i32 42