summaryrefslogtreecommitdiff
path: root/tests/test1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test1.c')
-rw-r--r--tests/test1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test1.c b/tests/test1.c
new file mode 100644
index 0000000..8c19bb7
--- /dev/null
+++ b/tests/test1.c
@@ -0,0 +1,10 @@
+int main() {
+ int x = 10;
+ int *p = &x;
+ *p = 20;
+ if (*p == 20) {
+ return 1;
+ } else {
+ return 0;
+ }
+} \ No newline at end of file