summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/always-inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/always-inline.c')
-rw-r--r--test/FrontendC/always-inline.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/FrontendC/always-inline.c b/test/FrontendC/always-inline.c
new file mode 100644
index 0000000..22f6c7a
--- /dev/null
+++ b/test/FrontendC/always-inline.c
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc -S %s -o - | grep call | not grep foo
+
+void bar() {
+}
+
+inline void __attribute__((__always_inline__)) foo() {
+ bar();
+}
+
+void i_want_bar() {
+ foo();
+}
OpenPOWER on IntegriCloud