aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c
new file mode 100644
index 000000000..a9efb4290
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr57698.c
@@ -0,0 +1,19 @@
+typedef int (*IsAcceptableThis) (const int );
+inline int
+fn1 (IsAcceptableThis p1)
+{
+ p1 (0);
+ return 0;
+}
+
+__attribute__ ((always_inline))
+inline int fn2 (const int a)
+{
+ return 0;
+}
+
+void
+fn3 ()
+{
+ fn1 (fn2);
+}