Unified · Split
| @@ -0,0 +1,10 @@ | ||
| 1 | +#define CAT2(a,b) a##b | |
| 2 | +#define CAT(a,b) CAT2(a,b) | |
| 3 | +#define AB(x) CAT(x,y) | |
| 4 | + | |
| 5 | +int main(void) | |
| 6 | +{ | |
| 7 | + int xy = 42; | |
| 8 | + printf("%d\n", CAT(A,B)(x)); | |
| 9 | + return 0; | |
| 10 | +} | |
| @@ -0,0 +1 @@ | ||
| 1 | +42 | |
| @@ -78,7 +78,8 @@ TESTS = \ · 77 unmodified lines | ||
| 78 | 78 | 60_enum_redefinition.test \ |
| 79 | 79 | 61_undefined_enum.test \ |
| 80 | 80 | 62_enumerator_redefinition.test \ |
| 81 | − 63_local_enumerator_redefinition.test | |
| 81 | + 63_local_enumerator_redefinition.test \ | |
| 82 | + 64_macro_nesting.test | |
| 82 | 83 | |
| 83 | 84 | # 30_hanoi.test -- seg fault in the code, gcc as well |
| 84 | 85 | # 34_array_assignment.test -- array assignment is not in C standard |