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