summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-05 18:07:42 -0500
committerpommicket <pommicket@gmail.com>2022-02-05 18:07:42 -0500
commitd718819ee757fcc59480ea3eff8bbac5a129a3a5 (patch)
tree0a626a09aec3a9def7585beed3e304c6ea90c826 /05/main.c
parentc5e2556d318a802031cbf6947bed011b270b345c (diff)
block static variables seem to be working
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/05/main.c b/05/main.c
index f706e88..f10dbf9 100644
--- a/05/main.c
+++ b/05/main.c
@@ -1,10 +1,24 @@
+static int g;
+
int f(void) {
lbl1:break;;goto blah;
case -1-3:
continue;a:break;return;return 6+3<<sizeof(int);
goto lbl1;
case 77:;return 92834;
+ return g;
static int x = 0x12345;
+ return x;
+}
+
+int h(void) {
+ static long x = 0x12345;
+ return x;
+ {
+ static unsigned short x = 0x123f;
+ return x;
+ }{{{{{{{{{{{{{{static unsigned x = 0x1234567; return x;}}}}}}}}return x;}}}}}return x;}
+ return g;
}
/* typedef int AA[sizeof x]; */