summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-08-30 12:14:04 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-08-30 12:14:04 -0400
commit1929fee97726344c0e83d74258ff27d0488770f9 (patch)
treebc1622766e2f4a1a670c576bfa32a25c9bc95338 /out.c
parent969a228777ca0f2f624618d48b7ed21e2c25ec29 (diff)
added array access lvalues
Diffstat (limited to 'out.c')
-rw-r--r--out.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/out.c b/out.c
index 95de661..23b0282 100644
--- a/out.c
+++ b/out.c
@@ -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) {