summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44964.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr44964.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr44964.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr44964.c b/gcc/testsuite/gcc.dg/pr44964.c
new file mode 100644
index 000000000..1df1bde07
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr44964.c
@@ -0,0 +1,21 @@
+/* { dg-do compile } */
+/* { dg-options "-fkeep-inline-functions -O" } */
+
+static inline __attribute__ ((const))
+void baz (int i)
+{
+}
+
+static __attribute__ ((always_inline))
+inline __attribute__ ((flatten))
+void bar (void)
+{
+ baz (0);
+}
+
+void
+foo (void)
+{
+ bar ();
+}
+