aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/decl-6.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-03-07 01:33:46 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-03-07 00:33:46 +0000
commit75a65ed93cea85ad3cff84e5afb9a0079385efce (patch)
tree998e3208cb29166030593a1ea4d6f9dd79a8cb76 /gcc/testsuite/gcc.dg/decl-6.c
parent679d3167415cefab86d51bdace6d5e9be1ef9f55 (diff)
downloadgcc-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.c15
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;
+}