[hackers] [scc] Add test002 || Roberto E. Vargas Caballero
commit 3e1a3035dc3e9959cdbba2cc3d658eacbf62d761
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 13 23:48:07 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 13 23:48:07 2015 +0200
Add test002
This test tests forward references of structures.
At this moment it is failling, but it is a first
step to fix it.
diff --git a/cc1/tests/test002.c b/cc1/tests/test002.c
new file mode 100644
index 0000000..3a26fe0
--- /dev/null
+++ b/cc1/tests/test002.c
_AT_@ -0,0 +1,32 @@
+/*
+name: TEST002
+description: Test forward references before definition of type definition
+output:
+S2 S
+G4 P x
+F1
+X6 F1 main
+G6 F1 main {
+-
+S2 S (
+M5 I
+)
+A2 S2 y
+ A2 M5 .I #I0 :I
+ G4 _AT_S2 A2 :S
+}
+*/
+
+struct S *x;
+struct S {
+ int i;
+};
+
+void
+main(void)
+{
+ struct S y;
+
+ y.i = 0;
+ *x = y;
+}
Received on Thu Aug 13 2015 - 23:49:19 CEST
This archive was generated by hypermail 2.3.0
: Fri Aug 14 2015 - 00:00:22 CEST