diff options
author | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2022-09-19 16:37:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 16:37:17 +0200 |
commit | 994c6c34182606385140e5695e33c90507ce59ee (patch) | |
tree | e9291d64997dd3e2ac8660c0e6fbe1b9a597799e /test/regression/Results/charlit | |
parent | 103aa7074a9dd3b1bcb2864d52c89292a2ab7bff (diff) | |
download | compcert-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/charlit')
-rw-r--r-- | test/regression/Results/charlit | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/regression/Results/charlit b/test/regression/Results/charlit new file mode 100644 index 00000000..3954a0c8 --- /dev/null +++ b/test/regression/Results/charlit @@ -0,0 +1,27 @@ +c1: 61 +c2: 61 +c3: 61 +c4: 61 +d1: fe +d2: fe +d3: fe +d4: fe +e1: 34 +e2: 1234 +e3: 1234 +e4: 1234 +f1: e9 +f2: e9 +f3: e9 +f4: e9 +g1: 2b +g2: 732b +g3: 732b +g4: 732b +h1: 4c +h2: f34c +h3: 1f34c +h4: 1f34c +m1: 6162 +m2: 1020304 +m3: e9e8 |