summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cross-lang-lto-pgo-smoketest/clib.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/cross-lang-lto-pgo-smoketest/clib.c')
-rw-r--r--tests/run-make/cross-lang-lto-pgo-smoketest/clib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-make/cross-lang-lto-pgo-smoketest/clib.c b/tests/run-make/cross-lang-lto-pgo-smoketest/clib.c
new file mode 100644
index 000000000..90f33f24d
--- /dev/null
+++ b/tests/run-make/cross-lang-lto-pgo-smoketest/clib.c
@@ -0,0 +1,9 @@
+#include <stdint.h>
+
+uint32_t c_always_inlined() {
+ return 1234;
+}
+
+__attribute__((noinline)) uint32_t c_never_inlined() {
+ return 12345;
+}