diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-03-18 18:58:08 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-03-18 18:58:08 +0000 |
commit | 4ada538bd6381192f941d50068463fcf84775d76 (patch) | |
tree | 04de0b96dfb183513bec30c4171b9fce14927dd4 /gcc/testsuite/gcc.dg/debug/dwarf2 | |
parent | 79e9ebdc7db0be1cd866c3ab3d219053b46835d8 (diff) | |
download | gcc-4ada538bd6381192f941d50068463fcf84775d76.zip gcc-4ada538bd6381192f941d50068463fcf84775d76.tar.gz gcc-4ada538bd6381192f941d50068463fcf84775d76.tar.bz2 |
c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a...
* c-decl.c (grokdeclarator): Do not complain about redeclaring
visible "static" identifiers "extern" in a local scope.
* dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
post-increments/decrements.
* gcc.dg/local1.c: New test.
* gcc.dg/debug/dwarf2/c99-typedef1.c: New test.
From-SVN: r79634
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug/dwarf2')
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/dwarf2/c99-typedef1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/c99-typedef1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/c99-typedef1.c new file mode 100644 index 0000000..b7bd66a --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/c99-typedef1.c @@ -0,0 +1,9 @@ +// { dg-options "-std=iso9899:1999 -gdwarf-2" } + +void f() { + int n = 3; + typedef int T[n++]; + + T t; + t[0] = 7; +} |