diff options
author | John Criswell <criswell@uiuc.edu> | 2004-01-01 23:58:07 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-01-01 23:58:07 +0000 |
commit | a29b94dd5a34dfdf189a1c1712058ebaab745715 (patch) | |
tree | 7f2faa4a100c45e118107dd03ec279d8d438f273 /test | |
parent | 2657aecfe273b9dfbd4fff77a3ed908197dcd30a (diff) | |
download | external_llvm-a29b94dd5a34dfdf189a1c1712058ebaab745715.zip external_llvm-a29b94dd5a34dfdf189a1c1712058ebaab745715.tar.gz external_llvm-a29b94dd5a34dfdf189a1c1712058ebaab745715.tar.bz2 |
Regression test for initializers with members of unknown size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/2004-01-01-UnknownInitSize.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CFrontend/2004-01-01-UnknownInitSize.c b/test/CFrontend/2004-01-01-UnknownInitSize.c new file mode 100644 index 0000000..076c54b --- /dev/null +++ b/test/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}}; + |