aboutsummaryrefslogtreecommitdiff
path: root/test/initializer-empty-struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/initializer-empty-struct.c')
-rw-r--r--test/initializer-empty-struct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/initializer-empty-struct.c b/test/initializer-empty-struct.c
new file mode 100644
index 0000000..01538f5
--- /dev/null
+++ b/test/initializer-empty-struct.c
@@ -0,0 +1,5 @@
+struct s {float x; long y;};
+struct s s = {};
+void f(void) {
+ struct s t = {};
+}