summaryrefslogtreecommitdiff
path: root/bracketop.c
diff options
context:
space:
mode:
Diffstat (limited to 'bracketop.c')
-rw-r--r--bracketop.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bracketop.c b/bracketop.c
new file mode 100644
index 0000000..f46849b
--- /dev/null
+++ b/bracketop.c
@@ -0,0 +1,11 @@
+#include <u.h>
+#include <libc.h>
+
+void
+main()
+{
+ int a[] = {1, 2};
+
+ print("%d\n", 1[a]);
+ exits(nil);
+}