Mercurial > hg > CbC > old > device
diff test/macro.c @ 914:f7803d618f36
fix
author | kono |
---|---|
date | Thu, 10 Apr 2014 11:30:54 +0900 |
parents | e253ffedf947 |
children | 60451f9e0c6e |
line wrap: on
line diff
--- a/test/macro.c Wed Apr 09 21:21:26 2014 +0900 +++ b/test/macro.c Thu Apr 10 11:30:54 2014 +0900 @@ -58,10 +58,12 @@ #define name(a,b) name_##b(a) #define names(a,b) name_ ## b(a) +#define names1(x,y) names(x,y) #define name_hoge(c) (c+a) - -#define hoge000(a) (a+a) /* hoge +#define name_aho(c) (c*a) +#define hoge000(a) (a+a) +#define aho000(a) (a*a) /* hoge comment */ @@ -104,8 +106,8 @@ printf("#0103:%d\n",name(3,hoge)); printf("#0104:%d\n",names(3,hoge)); printf("#0105:%d\n",hoge000(3)); - f(); - return 0; + printf("#0106:%d\n",names1(4,aho)); + f(); return 0; } /* For GCC 2.7 and later, we can use specific type-size attributes. */