diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20021120-2.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20021120-2.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 000000000..51f0e257d --- /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(); } |