summaryrefslogtreecommitdiff
path: root/util/romcc/tests/fail_test3.c
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-07-04 15:14:04 +0000
committerEric Biederman <ebiederm@xmission.com>2003-07-04 15:14:04 +0000
commit66fe2227dfbfd2086fb0266cdeea1ca904d76198 (patch)
tree546ea320c877e0877d787e5cc8621b65df66a949 /util/romcc/tests/fail_test3.c
parent830c9886eaa6a2b1d8bbc2fd36bf7b3f5f31a0d2 (diff)
downloadcoreboot-66fe2227dfbfd2086fb0266cdeea1ca904d76198.tar.xz
- Moved 2 of the test cases into tests for failure
- Reworked the transformation into ssa form and now I catch all unitialized variable uses. - Several more test cases - Bumped the version to 0.34 - Verified that -O2 the scc_transform now works. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@934 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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;
+
+}