aboutsummaryrefslogtreecommitdiff
path: root/testbed/custom_struct.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-07 03:17:32 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-07 03:17:32 +0800
commit52b29440f8f1310e0c074c8eb409e433c56bdd62 (patch)
tree6d91ceeb6594fe337541ed3f9f50cd33ee8881ca /testbed/custom_struct.c
parent0ac22f0214ee283ce9bb053d691aeac823f875be (diff)
rename
Diffstat (limited to 'testbed/custom_struct.c')
-rw-r--r--testbed/custom_struct.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/testbed/custom_struct.c b/testbed/custom_struct.c
deleted file mode 100644
index 0d473f5..0000000
--- a/testbed/custom_struct.c
+++ /dev/null
@@ -1,26 +0,0 @@
-struct D {
- int a, b;
-};
-struct A {
- int a[100];
- struct B {
- struct C {
- int x, y;
- } c;
- int z;
- struct D *p;
- } b;
-} s;
-int main() {
- struct D d;
- int n = 0;
- s.a[1] = 1;
- s.a[2] = 2;
- s.b.z = 4;
- s.b.c.x = 5;
- s.b.c.y = 6;
- s.b.p = &d;
- s.b.p->a = 7;
- s.b.p->b = 8;
- printf("%d %d %d %d %d %d %d\n", s.a[1], s.a[2], s.b.z, s.b.c.x, s.b.c.y, s.b.p->a, s.b.p->b);
-}