]> granicus.if.org Git - re2c/commitdiff
Tests: code points that exceed maximum for current encoding.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 20 Aug 2015 11:35:47 +0000 (12:35 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 20 Aug 2015 11:35:47 +0000 (12:35 +0100)
Test changes introduced by commit 0346d1666f58da5dbe35d156e0487d95354153ff:
"Check if code point exceeds maximum. Correctly cast 'char' to 'uint32_t'."

12 files changed:
re2c/test/code_points_error.8.c [new file with mode: 0644]
re2c/test/code_points_error.8.re [new file with mode: 0644]
re2c/test/code_points_error.c [new file with mode: 0644]
re2c/test/code_points_error.e.c [new file with mode: 0644]
re2c/test/code_points_error.e.re [new file with mode: 0644]
re2c/test/code_points_error.re [new file with mode: 0644]
re2c/test/code_points_error.u.c [new file with mode: 0644]
re2c/test/code_points_error.u.re [new file with mode: 0644]
re2c/test/code_points_error.w.c [new file with mode: 0644]
re2c/test/code_points_error.w.re [new file with mode: 0644]
re2c/test/code_points_error.x.c [new file with mode: 0644]
re2c/test/code_points_error.x.re [new file with mode: 0644]

diff --git a/re2c/test/code_points_error.8.c b/re2c/test/code_points_error.8.c
new file mode 100644 (file)
index 0000000..271b207
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -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 (file)
index 0000000..4b4f6b4
--- /dev/null
@@ -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 (file)
index 0000000..4b4f6b4
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -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 (file)
index 0000000..271b207
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -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 (file)
index 0000000..66e9e90
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -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 (file)
index 0000000..271b207
--- /dev/null
@@ -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 (file)
index 0000000..dd850f9
--- /dev/null
@@ -0,0 +1,3 @@
+/*!re2c
+"\xFF\uFFFF\U0010FFFF\U00110000" {}
+*/