diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-23 17:35:21 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-23 17:35:21 -0400 |
| commit | 89953ec83d8afe4fed0fc9e3cdded09c7522bf86 (patch) | |
| tree | 42f76e6da37b08e0022af060545c5e5d3f6bd476 /test | |
| parent | 55cb9ef138c7cf0a23e7f852a82884612a3ca663 (diff) | |
| download | zig-89953ec83d8afe4fed0fc9e3cdded09c7522bf86.tar.gz zig-89953ec83d8afe4fed0fc9e3cdded09c7522bf86.zip | |
character literals: allow unicode escapes
also make the documentation for character literals more clear.
closes #2089
see #2097
Diffstat (limited to 'test')
| -rw-r--r-- | test/stage1/behavior/misc.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/stage1/behavior/misc.zig b/test/stage1/behavior/misc.zig index 36246162f5..fd407821e6 100644 --- a/test/stage1/behavior/misc.zig +++ b/test/stage1/behavior/misc.zig @@ -699,3 +699,8 @@ test "thread local variable" { S.t += 1; expect(S.t == 1235); } + +test "unicode escape in character literal" { + var a: u24 = '\U01f4a9'; + expect(a == 128169); +} |
