diff options
author | Teresa Johnson <tejohnson@google.com> | 2015-10-15 20:35:53 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2015-10-15 20:35:53 +0000 |
commit | 945bc50f218290b92adc81129f2b67f6a6dd0f56 (patch) | |
tree | b1d6cc3e1654288710358110ff073f5ecc89287d /clang/test/Misc/thinlto.c | |
parent | 3b82908f0f0bae1c6be837be63ac2dff40dba539 (diff) | |
download | bcm5719-llvm-945bc50f218290b92adc81129f2b67f6a6dd0f56.tar.gz bcm5719-llvm-945bc50f218290b92adc81129f2b67f6a6dd0f56.zip |
Recommit "Clang support for -flto=thin."
This recommits r250398 with fixes to the tests for bot failures.
Add "-target x86_64-unknown-linux" to the clang invocations that
check for the gold plugin.
llvm-svn: 250455
Diffstat (limited to 'clang/test/Misc/thinlto.c')
-rw-r--r-- | clang/test/Misc/thinlto.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Misc/thinlto.c b/clang/test/Misc/thinlto.c new file mode 100644 index 00000000000..9134cbe5c5e --- /dev/null +++ b/clang/test/Misc/thinlto.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s +// CHECK: <FUNCTION_SUMMARY_BLOCK +// CHECK-NEXT: <PERMODULE_ENTRY +// CHECK-NEXT: <PERMODULE_ENTRY +// CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK + +__attribute__((noinline)) void foo() {} + +int main() { foo(); } |