aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/Results/stringlit
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2022-09-19 16:37:17 +0200
committerGitHub <noreply@github.com>2022-09-19 16:37:17 +0200
commit994c6c34182606385140e5695e33c90507ce59ee (patch)
treee9291d64997dd3e2ac8660c0e6fbe1b9a597799e /test/regression/Results/stringlit
parent103aa7074a9dd3b1bcb2864d52c89292a2ab7bff (diff)
downloadcompcert-994c6c34182606385140e5695e33c90507ce59ee.tar.gz
compcert-994c6c34182606385140e5695e33c90507ce59ee.zip
Support C11 Unicode string literals and character constants (#452)
* Support C11 Unicode string literals and character constants * Add tests for C11 string literals and character constants * Better error message for ill-formed universal character names E.g. \u followed by fewer than 4 hex digits, or \U followed by fewer than 8 hex digits. * Add new warning `invalid-utf8` for byte sequences that are not valid UTF8. The warning is activated but not fatal by default. * Warn on uses of C11 Unicode character constants and string literals This uses the `c11-extensions` warning, which is off by default. * Support preprocessing option -finput-charset= for GNU toolchains
Diffstat (limited to 'test/regression/Results/stringlit')
-rw-r--r--test/regression/Results/stringlit15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/regression/Results/stringlit b/test/regression/Results/stringlit
new file mode 100644
index 00000000..d6967ccc
--- /dev/null
+++ b/test/regression/Results/stringlit
@@ -0,0 +1,15 @@
+s1: size 11, contents 61 c3 a9 e7 8c ab f0 9f 8d 8c
+s2: size 11, contents 61 c3 a9 e7 8c ab f0 9f 8d 8c
+s3: size 12, contents 61 e9 732b d83c df4c
+s4: size 20, contents 61 e9 732b 1f34c
+s5: size 20, contents 61 e9 732b 1f34c
+t1: size 11, contents 61 c3 a9 e7 8c ab f0 9f 8d 8c
+t2: size 11, contents 61 c3 a9 e7 8c ab f0 9f 8d 8c
+t3: size 12, contents 61 e9 732b d83c df4c
+t4: size 20, contents 61 e9 732b 1f34c
+t5: size 20, contents 61 e9 732b 1f34c
+e1: size 4, contents 61 e9 e8
+e2: size 4, contents 61 e9 e8
+e3: size 10, contents 61 e9 e8 732b
+e4: size 24, contents 61 e9 e8 732b 1f34c
+e5: size 24, contents 61 e9 e8 732b 1f34c