From d8734cf9162bc74b3c7603e4e81cb04a983bd444 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 29 May 2008 19:17:15 +0000 Subject: For PR1338: Rename test dirs llvm-svn: 51695 --- llvm/test/FrontendC/2004-01-01-UnknownInitSize.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 llvm/test/FrontendC/2004-01-01-UnknownInitSize.c (limited to 'llvm/test/FrontendC/2004-01-01-UnknownInitSize.c') diff --git a/llvm/test/FrontendC/2004-01-01-UnknownInitSize.c b/llvm/test/FrontendC/2004-01-01-UnknownInitSize.c new file mode 100644 index 00000000000..b26b6cd8756 --- /dev/null +++ b/llvm/test/FrontendC/2004-01-01-UnknownInitSize.c @@ -0,0 +1,14 @@ +// RUN: %llvmgcc -S %s -o /dev/null + +/* + * 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}}; + -- cgit v1.2.3