From ea59cbd68312cdba1646d64bfa6662f84708a80a Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 23 Aug 2008 06:47:37 +0000 Subject: [PATCH 1/1] Another weird GCC extension: designated initialisation using colon. [r21371] --- parsetest/init1.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 parsetest/init1.c diff --git a/parsetest/init1.c b/parsetest/init1.c new file mode 100644 index 0000000..3e96657 --- /dev/null +++ b/parsetest/init1.c @@ -0,0 +1,11 @@ +struct X { + int x; +}; + +struct X bla = { x: 23 }; + +int main(void) +{ + printf("%d\n", bla.x); + return 0; +} -- 2.20.1