Mercurial > hg > CbC > old > device
diff test/macro.c @ 919:08dcc3b7c39b
fix init string in i64
author | kono |
---|---|
date | Fri, 11 Apr 2014 10:45:41 +0900 |
parents | 60451f9e0c6e |
children | 3cdc3c1d83bd |
line wrap: on
line diff
--- a/test/macro.c Thu Apr 10 20:11:31 2014 +0900 +++ b/test/macro.c Fri Apr 11 10:45:41 2014 +0900 @@ -68,6 +68,32 @@ */ #define stringify(x) (#x) +char *init_str = "\ +test1\n\ +test2\n\ +" +#ifdef __linux__ +// linux case +"\ +test3 linux\n\ +test4\n\ +" +#ifdef __x86_64__ +"__x86_64__\n" +#endif +#else +#ifdef __APPLE__ +"\ +test3 APPLE\n\ +test4\n\ +" +#endif +#ifdef __x86_64__ +"__x86_64__\n" +#endif +#endif +; + int main() { int a,b,e; @@ -108,7 +134,9 @@ printf("#0105:%d\n",hoge000(3)); printf("#0106:%d\n",names1(4,aho)); printf("#0107:%s\n",stringify(aho)); - f(); return 0; + printf("#0108:%s\n",init_str); + f(); + return 0; } /* For GCC 2.7 and later, we can use specific type-size attributes. */ @@ -130,7 +158,6 @@ __u_intN_t (32, __SI__); __u_intN_t (64, __DI__); - int tmp() #if 0 {