diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-03-07 01:33:46 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-03-07 00:33:46 +0000 |
commit | 75a65ed93cea85ad3cff84e5afb9a0079385efce (patch) | |
tree | 998e3208cb29166030593a1ea4d6f9dd79a8cb76 /gcc/testsuite/gcc.dg/decl-6.c | |
parent | 679d3167415cefab86d51bdace6d5e9be1ef9f55 (diff) | |
download | gcc-75a65ed93cea85ad3cff84e5afb9a0079385efce.zip gcc-75a65ed93cea85ad3cff84e5afb9a0079385efce.tar.gz gcc-75a65ed93cea85ad3cff84e5afb9a0079385efce.tar.bz2 |
re PR c/14465 (insn-output.c:790: error: `asm_out_file' undeclared)
PR c/14465
* gcc.dg/decl-6.c: New test.
From-SVN: r79038
Diffstat (limited to 'gcc/testsuite/gcc.dg/decl-6.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/decl-6.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/decl-6.c b/gcc/testsuite/gcc.dg/decl-6.c new file mode 100644 index 0000000..0fd45d3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/decl-6.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ + +extern int var; + +int foo1(void) +{ + extern int var; + + var += 1; +} + +int foo2(void) +{ + var += 1; +} |