what's this syntax?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, gcc develpers,

The following could be compiled by gcc. Can anyone tell me what's the feature of gcc to support the syntax ?

void foo() {
 if(
     ( __extension__
         (
             (
                 (
                     union {
                         int a;
                         int b;
                    }
                 ) { .a =7 }
             ) .b
          )
       ) == 7 ) {
             printf("abc\n");
   }else {
             printf("def\n");
  }
}

int main() {
foo();
}


Thanks.

Mike


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux