From 4d822cc81d5580eded50a0a1e563eca379ca28e2 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 1 Jan 2004 23:58:07 +0000 Subject: [PATCH] Regression test for initializers with members of unknown size. llvm-svn: 10678 --- .../CFrontend/2004-01-01-UnknownInitSize.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Regression/CFrontend/2004-01-01-UnknownInitSize.c diff --git a/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c b/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c new file mode 100644 index 00000000000..076c54b39f9 --- /dev/null +++ b/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c @@ -0,0 +1,12 @@ +/* + * This regression test ensures that the C front end can compile initializers + * even when it cannot determine the size (as below). + */ +struct one +{ + int a; + int values []; +}; + +struct one hobbit = {5, {1, 2, 3}}; +