diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-08-30 12:14:04 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-08-30 12:14:04 -0400 |
commit | 1929fee97726344c0e83d74258ff27d0488770f9 (patch) | |
tree | bc1622766e2f4a1a670c576bfa32a25c9bc95338 /out.c | |
parent | 969a228777ca0f2f624618d48b7ed21e2c25ec29 (diff) |
added array access lvalues
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,8 +1,13 @@ #include "out.h" /* toc */ +static void a___(void); void main__(void) { void (*bar[3])(void) = {NULL}; + void (*foo)(void) = a___; + ((bar[1])=foo); + ((bar[2])=foo); + ((bar[0])=foo); int64_t i = 0; void (*x)(void) = (bar[i]); x(); @@ -12,9 +17,8 @@ void main__(void) { (i=(i+1)); (x=(bar[i])); x(); - (i=(i+1)); - (x=(bar[i])); - x(); +} +static void a___(void) { } int main(void) { |