summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test71.c
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-10-22 04:03:46 +0000
committerEric Biederman <ebiederm@xmission.com>2003-10-22 04:03:46 +0000
commit5ade04a436c151d88fc02ca18e2de990d7b569dd (patch)
tree059d05c3a62b463ab20bb93eb0fa6a6192173604 /util/romcc/tests/simple_test71.c
parentfc76dcf0d00f9e1d28d128ffc43320d940f531a6 (diff)
- Update romcc to version 0.37
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1225 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc/tests/simple_test71.c')
-rw-r--r--util/romcc/tests/simple_test71.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test71.c b/util/romcc/tests/simple_test71.c
new file mode 100644
index 0000000000..35956c5ea8
--- /dev/null
+++ b/util/romcc/tests/simple_test71.c
@@ -0,0 +1,25 @@
+static void foo(void)
+{
+ __builtin_outl(22, 0x5678);
+}
+static void main(void)
+{
+ int i;
+
+#if 1
+ foo();
+#endif
+#if 1
+ foo();
+#endif
+ for(i = 0; i < 10; i++) {
+#if 1
+ foo();
+#endif
+#if 0
+ foo();
+#endif
+ __builtin_outl(i, 0x1234);
+ }
+
+}