aboutsummaryrefslogtreecommitdiff
path: root/test/initializer-replace-static-string-wide.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/initializer-replace-static-string-wide.c')
-rw-r--r--test/initializer-replace-static-string-wide.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/initializer-replace-static-string-wide.c b/test/initializer-replace-static-string-wide.c
new file mode 100644
index 0000000..b6c348a
--- /dev/null
+++ b/test/initializer-replace-static-string-wide.c
@@ -0,0 +1,20 @@
+struct {
+ unsigned short s[6];
+} u = {
+ .s = u"aα€😐",
+ .s[2] = u'£',
+};
+
+struct {
+ unsigned s[5];
+} U = {
+ .s = U"aα€😐",
+ .s[3] = U'😃',
+};
+
+struct {
+ __typeof__(L' ') s[5];
+} L = {
+ .s = L"aα€😐",
+ .s[3] = L'😃',
+};