diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-27 14:01:27 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-27 14:01:27 +0000 |
commit | f549b28db58e79eb1edce3a640bfa890bef1c6f6 (patch) | |
tree | 8bf61b8be7e8989d8c213faaeb4fb64ab0561c76 /gcc/testsuite/gcc.dg/inline-22.c | |
parent | 11d686e25f7f40db2e4161ab80ff70021169a33f (diff) | |
download | gcc-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/gcc.dg/inline-22.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/inline-22.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |