History

Add new tests for macro nesting

Thomas Preud'homme committed 12 years ago

Commit 91d4db61 parent c2422ba3 files · +13 −1Browse files

Unified · Split

3 files
  1. tests/tests2/64_macro_nesting.c +10 −0
  2. tests/tests2/64_macro_nesting.expect +1 −0
  3. tests/tests2/Makefile +2 −1
tests/tests2/64_macro_nesting.c+10−0
@@ -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
5int main(void)
6{
7 int xy = 42;
8 printf("%d\n", CAT(A,B)(x));
9 return 0;
10}
tests/tests2/64_macro_nesting.expect+1−0
@@ -0,0 +1 @@
142
tests/tests2/Makefile+2−1
@@ -78,7 +78,8 @@ TESTS = \ · 77 unmodified lines
78 60_enum_redefinition.test \78 60_enum_redefinition.test \
79 61_undefined_enum.test \79 61_undefined_enum.test \
80 62_enumerator_redefinition.test \80 62_enumerator_redefinition.test \
81 63_local_enumerator_redefinition.test81 63_local_enumerator_redefinition.test \
82 64_macro_nesting.test
82 83
83# 30_hanoi.test -- seg fault in the code, gcc as well84# 30_hanoi.test -- seg fault in the code, gcc as well
84# 34_array_assignment.test -- array assignment is not in C standard85# 34_array_assignment.test -- array assignment is not in C standard

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t