Home
       0138-namespace.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       0138-namespace.c (255B)
       ---
            1 typedef struct s s;
            2 
            3 struct s {
            4         struct s1 {
            5                 int s;
            6                 struct s2 {
            7                         int s;
            8                 } s1;
            9         } s;
           10 } s2;
           11 
           12 #define s s
           13 
           14 int
           15 main(void)
           16 {
           17 #undef s
           18         goto s;
           19         struct s s;
           20                 {
           21                         int s;
           22                         return s;
           23                 }
           24         return s.s.s + s.s.s1.s;
           25         s:
           26                 {
           27                         return 0;
           28                 }
           29         return 1;
           30 }