From 89000c18dc7d5ccb2687948f94fe49d392990dab Mon Sep 17 00:00:00 2001 From: jiang <30155751@qq.com> Date: Tue, 1 Jul 2014 23:54:49 +0800 Subject: Rename: 68_macro_concat.c -> 68_macro_param_list_err_1.c 69_macro_concat.c -> 69_macro_param_list_err_2.c and Remove spaces --- tests/tests2/68_macro_concat.c | 9 --------- tests/tests2/68_macro_concat.expect | 1 - tests/tests2/68_macro_param_list_err_1.c | 9 +++++++++ tests/tests2/68_macro_param_list_err_1.expect | 1 + tests/tests2/69_macro_concat.c | 9 --------- tests/tests2/69_macro_concat.expect | 1 - tests/tests2/69_macro_param_list_err_2.c | 9 +++++++++ tests/tests2/69_macro_param_list_err_2.expect | 1 + tests/tests2/Makefile | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 tests/tests2/68_macro_concat.c delete mode 100644 tests/tests2/68_macro_concat.expect create mode 100644 tests/tests2/68_macro_param_list_err_1.c create mode 100644 tests/tests2/68_macro_param_list_err_1.expect delete mode 100644 tests/tests2/69_macro_concat.c delete mode 100644 tests/tests2/69_macro_concat.expect create mode 100644 tests/tests2/69_macro_param_list_err_2.c create mode 100644 tests/tests2/69_macro_param_list_err_2.expect (limited to 'tests') diff --git a/tests/tests2/68_macro_concat.c b/tests/tests2/68_macro_concat.c deleted file mode 100644 index 5c1361f..0000000 --- a/tests/tests2/68_macro_concat.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#define hexCh(c (c >= 10 ? 'a' + c - 10 : '0' + c) - -int main(void) -{ - int c = 0xa; - printf("hex: %c\n", hexCh(c)); - return 0; -} diff --git a/tests/tests2/68_macro_concat.expect b/tests/tests2/68_macro_concat.expect deleted file mode 100644 index 0bf7d54..0000000 --- a/tests/tests2/68_macro_concat.expect +++ /dev/null @@ -1 +0,0 @@ -68_macro_concat.c:2: error: '(' may not appear in parameter list diff --git a/tests/tests2/68_macro_param_list_err_1.c b/tests/tests2/68_macro_param_list_err_1.c new file mode 100644 index 0000000..fd08dc7 --- /dev/null +++ b/tests/tests2/68_macro_param_list_err_1.c @@ -0,0 +1,9 @@ +#include +#define hexCh(c (c >= 10 ? 'a' + c - 10 : '0' + c) + +int main(void) +{ + int c = 0xa; + printf("hex: %c\n", hexCh(c)); + return 0; +} diff --git a/tests/tests2/68_macro_param_list_err_1.expect b/tests/tests2/68_macro_param_list_err_1.expect new file mode 100644 index 0000000..3246640 --- /dev/null +++ b/tests/tests2/68_macro_param_list_err_1.expect @@ -0,0 +1 @@ +68_macro_param_list_err_1.c:2: error: '(' may not appear in parameter list diff --git a/tests/tests2/69_macro_concat.c b/tests/tests2/69_macro_concat.c deleted file mode 100644 index 3b16313..0000000 --- a/tests/tests2/69_macro_concat.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#define hexCh(c/3) (c >= 10 ? 'a' + c - 10 : '0' + c) - -int main(void) -{ - int c = 0xa; - printf("hex: %c\n", hexCh(c)); - return 0; -} diff --git a/tests/tests2/69_macro_concat.expect b/tests/tests2/69_macro_concat.expect deleted file mode 100644 index 89e7b79..0000000 --- a/tests/tests2/69_macro_concat.expect +++ /dev/null @@ -1 +0,0 @@ -69_macro_concat.c:2: error: '/' may not appear in parameter list diff --git a/tests/tests2/69_macro_param_list_err_2.c b/tests/tests2/69_macro_param_list_err_2.c new file mode 100644 index 0000000..06f0b41 --- /dev/null +++ b/tests/tests2/69_macro_param_list_err_2.c @@ -0,0 +1,9 @@ +#include +#define hexCh(c/3) (c >= 10 ? 'a' + c - 10 : '0' + c) + +int main(void) +{ + int c = 0xa; + printf("hex: %c\n", hexCh(c)); + return 0; +} diff --git a/tests/tests2/69_macro_param_list_err_2.expect b/tests/tests2/69_macro_param_list_err_2.expect new file mode 100644 index 0000000..6d6b9d1 --- /dev/null +++ b/tests/tests2/69_macro_param_list_err_2.expect @@ -0,0 +1 @@ +69_macro_param_list_err_2.c:2: error: '/' may not appear in parameter list diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index 64532a1..bfd37e5 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -83,8 +83,8 @@ TESTS = \ 65_macro_concat_start.test \ 66_macro_concat_end.test \ 67_macro_concat.test \ - 68_macro_concat.test \ - 69_macro_concat.test + 68_macro_param_list_err_1.test \ + 69_macro_param_list_err_2.test # 34_array_assignment.test -- array assignment is not in C standard -- cgit v1.3.1