Skip to content

Commit 8b2d7b4

Browse files
author
Daniel Kroening
committed
test for unicode character literals
1 parent f09851c commit 8b2d7b4

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
int identifier_\u0201_;
2+
int \u0201_abc;
3+
4+
#define STATIC_ASSERT(condition) \
5+
int some_array##__LINE__[(condition) ? 1 : -1];
6+
7+
char my_string[]="\u0201";
8+
STATIC_ASSERT(sizeof(my_string)==3);
9+
10+
// also as character literal
11+
STATIC_ASSERT(L'\u0201'==0x0201);
12+
13+
int main()
14+
{
15+
identifier_ȁ_=10;
16+
ȁ_abc=10;
17+
}
18+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^CONVERSION ERROR$

0 commit comments

Comments
 (0)