aboutsummaryrefslogtreecommitdiff
path: root/tests/initializer-replace-static.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/initializer-replace-static.c')
-rw-r--r--tests/initializer-replace-static.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/initializer-replace-static.c b/tests/initializer-replace-static.c
new file mode 100644
index 0000000..c1fa376
--- /dev/null
+++ b/tests/initializer-replace-static.c
@@ -0,0 +1,6 @@
+struct {
+ char s[6];
+} x = {
+ .s = "hello",
+ .s[1] = 'a',
+};