diff options
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c/externs-1.c')
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/externs-1.c | 14 |
1 files changed, 14 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 0000000..552801d --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c/externs-1.c @@ -0,0 +1,14 @@ +typedef struct { char *name; } dummy; +extern dummy d[]; + +int +main (void) +{ + dummy *pd = d; + + while (pd->name) + { + printf ("%s\n", pd->name); + pd++; + } +} |