summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-27 14:01:27 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-27 14:01:27 +0000
commitf549b28db58e79eb1edce3a640bfa890bef1c6f6 (patch)
tree8bf61b8be7e8989d8c213faaeb4fb64ab0561c76 /gcc/testsuite
parent11d686e25f7f40db2e4161ab80ff70021169a33f (diff)
downloadgcc-f549b28db58e79eb1edce3a640bfa890bef1c6f6.tar.gz
2007-06-27 Richard Guenther <rguenther@suse.de>
PR middle-end/32492 * tree.h (fold_convertible_p): Declare. * fold-const.c (fold_convertible_p): New function. * gimplify.c (gimplify_call_expr): Use fold_convertible_p instead of lang_hooks.types_compatible_p. * gcc.dg/inline-22.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126054 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/inline-22.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 006c1fa1dd7..9f350e7b8df 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-27 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/32492
+ * gcc.dg/inline-22.c: New testcase.
+
2007-06-26 Hui-May Chang <hm.chang@apple.com>
* gcc.target/i386/large-size-array-3.c: Remove the larger size of
diff --git a/gcc/testsuite/gcc.dg/inline-22.c b/gcc/testsuite/gcc.dg/inline-22.c
new file mode 100644
index 00000000000..6d790f97402
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/inline-22.c
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+/* { dg-options "-funit-at-a-time" } */
+/* Verify we can inline without a complete prototype and with promoted
+ arguments. See also PR32492. */
+__attribute__((always_inline)) void f1() {}
+__attribute__((always_inline)) void f2(char x) {}
+void f3() { f1(); f2(0); }