diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-20 10:50:29 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-20 10:50:29 +0000 |
commit | 825da84bab258c28c4342c5d4cb0a1bb7522fbde (patch) | |
tree | 21b63ab7d28b41d3d61107cb4cdd6694780a9c0e /gcc | |
parent | fbd2e379091f0574747989d9130533c84daac795 (diff) | |
download | ppe42-gcc-825da84bab258c28c4342c5d4cb0a1bb7522fbde.tar.gz ppe42-gcc-825da84bab258c28c4342c5d4cb0a1bb7522fbde.zip |
* gcc.c-torture/compile/20021120-1.c: New test.
* gcc.c-torture/compile/20021120-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20021120-1.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20021120-2.c | 9 |
3 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5355d7dce6..510a9132b81 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-11-20 Eric Botcazou <ebotcazou@libertysurf.fr> + + * gcc.c-torture/compile/20021120-1.c: New test. + * gcc.c-torture/compile/20021120-2.c: New test. + 2002-11-20 Richard Sandiford <rsandifo@redhat.com> * gcc.dg/bitfld-5.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c new file mode 100644 index 00000000000..423f8ec1964 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c @@ -0,0 +1,9 @@ +/* PR c/8518 */ +/* Contributed by Volker Reichelt. */ + +/* Verify that GCC doesn't get confused by the + redefinition of an extern inline function. */ + +extern int inline foo () { return 0; } +extern int inline bar () { return 0; } +static int inline bar () { return foo(); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-2.c b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c new file mode 100644 index 00000000000..51f0e257dfd --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c @@ -0,0 +1,9 @@ +/* PR c/8518 */ +/* Contributed by Volker Reichelt. */ + +/* Verify that GCC doesn't get confused by the + redefinition of an extern inline function. */ + +extern int inline foo () { return 0; } +extern int inline bar () { return 0; } +static int bar () { return foo(); } |