diff options
| author | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-12 13:22:29 -0300 |
|---|---|---|
| committer | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-12 13:22:29 -0300 |
| commit | fa2bdd711212ba6b7a94a20971e8bfa281e73296 (patch) | |
| tree | 6713b3c0379507d49558287b71dd360ce188a2f0 /tinycc/tests/tests2/36_array_initialisers.c | |
lol
Diffstat (limited to 'tinycc/tests/tests2/36_array_initialisers.c')
| -rw-r--r-- | tinycc/tests/tests2/36_array_initialisers.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tinycc/tests/tests2/36_array_initialisers.c b/tinycc/tests/tests2/36_array_initialisers.c new file mode 100644 index 0000000..ac56f5a --- /dev/null +++ b/tinycc/tests/tests2/36_array_initialisers.c @@ -0,0 +1,25 @@ +#include <stdio.h> + +extern int Array3[10]; +int Array3[] = { 12, 34, }; +int main() +{ + int Count; + + int Array[10] = { 12, 34, 56, 78, 90, 123, 456, 789, 8642, 9753 }; + + for (Count = 0; Count < 10; Count++) + printf("%d: %d\n", Count, Array[Count]); + + int Array2[10] = { 12, 34, 56, 78, 90, 123, 456, 789, 8642, 9753, }; + + for (Count = 0; Count < 10; Count++) + printf("%d: %d\n", Count, Array2[Count]); + + for (Count = 0; Count < 10; Count++) + printf("%d: %d\n", Count, Array3[Count]); + + return 0; +} + +/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/ |
