Another weird GCC extension: designated initialisation using colon.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 23 Aug 2008 06:47:37 +0000 (06:47 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 23 Aug 2008 06:47:37 +0000 (06:47 +0000)
[r21371]

parsetest/init1.c [new file with mode: 0644]

diff --git a/parsetest/init1.c b/parsetest/init1.c
new file mode 100644 (file)
index 0000000..3e96657
--- /dev/null
@@ -0,0 +1,11 @@
+struct X {
+       int x;
+};
+
+struct X bla = { x: 23 };
+
+int main(void)
+{
+       printf("%d\n", bla.x);
+       return 0;
+}