|
Last change
on this file since 2793 was 714, checked in by bird, 22 years ago |
|
simple working testcase.
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
806 bytes
|
| Line | |
|---|
| 1 | #define NULL ((void*)0)
|
|---|
| 2 |
|
|---|
| 3 | static struct {
|
|---|
| 4 | void * pv;
|
|---|
| 5 | int num;
|
|---|
| 6 | } array[] = {
|
|---|
| 7 | {NULL, 1},
|
|---|
| 8 | {NULL, -1},
|
|---|
| 9 | {NULL, 1},
|
|---|
| 10 | {NULL, -1},
|
|---|
| 11 | {NULL, 1},
|
|---|
| 12 | {NULL, -1},
|
|---|
| 13 | {NULL, 1},
|
|---|
| 14 | {NULL, -1},
|
|---|
| 15 | {NULL, 1},
|
|---|
| 16 | {NULL, -1},
|
|---|
| 17 | {NULL, 1},
|
|---|
| 18 | {NULL, -1},
|
|---|
| 19 | {NULL, 1},
|
|---|
| 20 | {NULL, -1},
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | int main()
|
|---|
| 25 | {
|
|---|
| 26 | int rc = 0;
|
|---|
| 27 | int i;
|
|---|
| 28 |
|
|---|
| 29 | for (i = 0; i < sizeof(array) / sizeof(array[0]); i++)
|
|---|
| 30 | rc = array[i].num;
|
|---|
| 31 |
|
|---|
| 32 | return rc;
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.