0271-struct.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
0271-struct.c (214B)
---
1 struct tt {
2 int sec;
3 char *zone;
4 };
5
6 static struct tt tt1 = {.zone = "UTC"}, *pt1 = &tt1;
7 static struct tt tt2, *pt2 = &tt2;
8
9 int
10 main ( void )
11 {
12 *pt2 = tt1;
13 if (tt2.zone == 0)
14 return 1 ;
15
16 return 0 ;
17 }