diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-03-31 13:48:18 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-03-31 13:48:18 +0000 |
commit | 3cfab4b934e101c7b22f87c22ae4460ac7f4f739 (patch) | |
tree | 60a8cb39484a243e68d9da77793550e0ab20c554 /clang/test/CodeGen/function-sections.c | |
parent | 90c78250580d46c91c7b7ee1554a73aef6d6537d (diff) | |
download | bcm5719-llvm-3cfab4b934e101c7b22f87c22ae4460ac7f4f739.tar.gz bcm5719-llvm-3cfab4b934e101c7b22f87c22ae4460ac7f4f739.zip |
Add back test for r299152
I am hoping the bot failures are addressed by using cc1 for the ThinLTO
backend invocations as well.
llvm-svn: 299217
Diffstat (limited to 'clang/test/CodeGen/function-sections.c')
-rw-r--r-- | clang/test/CodeGen/function-sections.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/function-sections.c b/clang/test/CodeGen/function-sections.c index 734b7e2fc97..c34216dec6c 100644 --- a/clang/test/CodeGen/function-sections.c +++ b/clang/test/CodeGen/function-sections.c @@ -9,6 +9,12 @@ // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -S -fdata-sections -o - < %s | FileCheck %s --check-prefix=DATA_SECT // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -S -fno-data-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=DATA_SECT +// Try again through a clang invocation of the ThinLTO backend. +// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 %s -flto=thin -emit-llvm-bc -o %t.o +// RUN: llvm-lto -thinlto -o %t %t.o +// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -ffunction-sections -o - | FileCheck %s --check-prefix=FUNC_SECT +// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -fdata-sections -o - | FileCheck %s --check-prefix=DATA_SECT + const int hello = 123; void world() {} |