summaryrefslogtreecommitdiff
path: root/util/romcc/tests/fail_test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/fail_test3.c')
-rw-r--r--util/romcc/tests/fail_test3.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/romcc/tests/fail_test3.c b/util/romcc/tests/fail_test3.c
new file mode 100644
index 0000000000..84822839db
--- /dev/null
+++ b/util/romcc/tests/fail_test3.c
@@ -0,0 +1,10 @@
+static void main(void)
+{
+ volatile unsigned long *val = (volatile unsigned long *)0x1234;
+ int i;
+ if (val[0] > 25) {
+ i = 7;
+ }
+ val[1] = i;
+
+}