summaryrefslogtreecommitdiff
path: root/test/LTO
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-22 22:11:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-22 22:11:14 +0000
commita73e920f0982137083ba6291842cd81f4100fb0e (patch)
tree735ba556e40735093f78a14fa917887377b9a16c /test/LTO
parentefa1355495c836f13f98efbb27a99a4aabd60598 (diff)
downloadllvm-a73e920f0982137083ba6291842cd81f4100fb0e.tar.gz
llvm-a73e920f0982137083ba6291842cd81f4100fb0e.tar.bz2
llvm-a73e920f0982137083ba6291842cd81f4100fb0e.tar.xz
Provide a dummy section to fix a crash with inline assembly in LTO.
Fixes pr18508. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LTO')
-rw-r--r--test/LTO/current-section.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/LTO/current-section.ll b/test/LTO/current-section.ll
new file mode 100644
index 0000000000..f79b378318
--- /dev/null
+++ b/test/LTO/current-section.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s >%t1
+; RUN: llvm-lto -o %t2 %t1
+
+module asm ".align 4"