aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/externs-1.c
diff options
context:
space:
mode:
authorno-author <no-author@gcc.gnu.org>2005-07-22 07:31:32 +0000
committerno-author <no-author@gcc.gnu.org>2005-07-22 07:31:32 +0000
commitea85b3c5c3e92a70dabb440b249f7c97cdb3045f (patch)
tree2d00554ce3107c7986bcf8019547e9fa8d7708b7 /libmudflap/testsuite/libmudflap.c/externs-1.c
parent06dbf9039672be06678a949dc384273e5a4ea8c1 (diff)
This commit was manufactured by cvs2svn to create branch 'cfo-branch'.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/cfo-branch@102274 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c/externs-1.c')
-rw-r--r--libmudflap/testsuite/libmudflap.c/externs-1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/externs-1.c b/libmudflap/testsuite/libmudflap.c/externs-1.c
new file mode 100644
index 00000000000..028f5eb5a48
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c/externs-1.c
@@ -0,0 +1,16 @@
+typedef struct { char *name; } dummy;
+extern dummy d[];
+
+int
+main (void)
+{
+ dummy *pd = d;
+
+ while (pd->name)
+ {
+ printf ("%s\n", pd->name);
+ pd++;
+ }
+
+ return 0;
+}