From: Ulya Trofimovich Date: Thu, 20 Aug 2015 11:35:47 +0000 (+0100) Subject: Tests: code points that exceed maximum for current encoding. X-Git-Tag: 0.15~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59dc472c81d96da64fe862f921840f83b1a2e696;p=re2c 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'." --- 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" {} +*/