diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-13 15:44:25 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-13 15:44:25 +0000 |
commit | 49dbc65a258b9f187ea549a505443e500df8683f (patch) | |
tree | 9261bc45df26a587b5762e9d1ec2a6307641c5ea /gcc/testsuite/gcc.dg/inline-28.c | |
parent | 5c83e8d87ce4673b56807db9a168e58d709370b7 (diff) | |
download | gcc-49dbc65a258b9f187ea549a505443e500df8683f.tar.gz |
2008-06-13 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r136757
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@136758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/inline-28.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/inline-28.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/inline-28.c b/gcc/testsuite/gcc.dg/inline-28.c new file mode 100644 index 00000000000..20916aef992 --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-28.c @@ -0,0 +1,28 @@ +/* PR c/36507 */ +/* { dg-do run } */ +/* { dg-options "-O0 -std=gnu89" } */ + +int +main (void) +{ + int i = 2; + auto inline int f1 (void) + { + return i; + } + inline int f2 (void) + { + return i; + } + auto inline int f3 (void); + auto inline int f3 (void) + { + return i; + } + auto inline int f4 (void); + inline int f4 (void) + { + return i; + } + return f1 () + f2 () + f3 () + f4 () - 8; +} |