aboutsummaryrefslogtreecommitdiff
path: root/testbed
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-05 03:34:47 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-05 03:34:47 +0800
commitc77f0a1129fb34531b2d08c9518ee7def7213bb9 (patch)
treeb3d724143ae99614089bca315034c7c84d0bb7bd /testbed
parent6586df0797ad60af031cb80889f8205b6adcdfe3 (diff)
...
Diffstat (limited to 'testbed')
-rw-r--r--testbed/custom_opt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testbed/custom_opt.c b/testbed/custom_opt.c
new file mode 100644
index 0000000..d0126f3
--- /dev/null
+++ b/testbed/custom_opt.c
@@ -0,0 +1,9 @@
+int sum;
+void f() {
+ sum = 3;
+}
+int main() {
+ sum = 1;
+ f();
+ printf("%d\n", sum);
+}