summaryrefslogtreecommitdiffstats
path: root/test/Misc/thinlto.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/thinlto.c')
-rw-r--r--test/Misc/thinlto.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Misc/thinlto.c b/test/Misc/thinlto.c
new file mode 100644
index 0000000..9134cbe
--- /dev/null
+++ b/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(); }
OpenPOWER on IntegriCloud