From 59dc472c81d96da64fe862f921840f83b1a2e696 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 20 Aug 2015 12:35:47 +0100 Subject: [PATCH] Tests: code points that exceed maximum for current encoding. Test changes introduced by commit 0346d1666f58da5dbe35d156e0487d95354153ff: "Check if code point exceeds maximum. Correctly cast 'char' to 'uint32_t'." --- re2c/test/code_points_error.8.c | 1 + re2c/test/code_points_error.8.re | 3 +++ re2c/test/code_points_error.c | 1 + re2c/test/code_points_error.e.c | 1 + re2c/test/code_points_error.e.re | 3 +++ re2c/test/code_points_error.re | 3 +++ re2c/test/code_points_error.u.c | 1 + re2c/test/code_points_error.u.re | 3 +++ re2c/test/code_points_error.w.c | 1 + re2c/test/code_points_error.w.re | 3 +++ re2c/test/code_points_error.x.c | 1 + re2c/test/code_points_error.x.re | 3 +++ 12 files changed, 24 insertions(+) create mode 100644 re2c/test/code_points_error.8.c create mode 100644 re2c/test/code_points_error.8.re create mode 100644 re2c/test/code_points_error.c create mode 100644 re2c/test/code_points_error.e.c create mode 100644 re2c/test/code_points_error.e.re create mode 100644 re2c/test/code_points_error.re create mode 100644 re2c/test/code_points_error.u.c create mode 100644 re2c/test/code_points_error.u.re create mode 100644 re2c/test/code_points_error.w.c create mode 100644 re2c/test/code_points_error.w.re create mode 100644 re2c/test/code_points_error.x.c create mode 100644 re2c/test/code_points_error.x.re diff --git a/re2c/test/code_points_error.8.c b/re2c/test/code_points_error.8.c new file mode 100644 index 00000000..271b2074 --- /dev/null +++ b/re2c/test/code_points_error.8.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0x110000' diff --git a/re2c/test/code_points_error.8.re b/re2c/test/code_points_error.8.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.8.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ diff --git a/re2c/test/code_points_error.c b/re2c/test/code_points_error.c new file mode 100644 index 00000000..4b4f6b4b --- /dev/null +++ b/re2c/test/code_points_error.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0xFFFF' diff --git a/re2c/test/code_points_error.e.c b/re2c/test/code_points_error.e.c new file mode 100644 index 00000000..4b4f6b4b --- /dev/null +++ b/re2c/test/code_points_error.e.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0xFFFF' diff --git a/re2c/test/code_points_error.e.re b/re2c/test/code_points_error.e.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.e.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ diff --git a/re2c/test/code_points_error.re b/re2c/test/code_points_error.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ diff --git a/re2c/test/code_points_error.u.c b/re2c/test/code_points_error.u.c new file mode 100644 index 00000000..271b2074 --- /dev/null +++ b/re2c/test/code_points_error.u.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0x110000' diff --git a/re2c/test/code_points_error.u.re b/re2c/test/code_points_error.u.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.u.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ diff --git a/re2c/test/code_points_error.w.c b/re2c/test/code_points_error.w.c new file mode 100644 index 00000000..66e9e906 --- /dev/null +++ b/re2c/test/code_points_error.w.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0x10FFFF' diff --git a/re2c/test/code_points_error.w.re b/re2c/test/code_points_error.w.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.w.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ diff --git a/re2c/test/code_points_error.x.c b/re2c/test/code_points_error.x.c new file mode 100644 index 00000000..271b2074 --- /dev/null +++ b/re2c/test/code_points_error.x.c @@ -0,0 +1 @@ +re2c: error: line 2, column 1: Bad code point: '0x110000' diff --git a/re2c/test/code_points_error.x.re b/re2c/test/code_points_error.x.re new file mode 100644 index 00000000..dd850f96 --- /dev/null +++ b/re2c/test/code_points_error.x.re @@ -0,0 +1,3 @@ +/*!re2c +"\xFF\uFFFF\U0010FFFF\U00110000" {} +*/ -- 2.40.0