mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Regression test for initializers with members of unknown size.
llvm-svn: 10678
This commit is contained in:
parent
4a673d0bf9
commit
4d822cc81d
12
test/Regression/CFrontend/2004-01-01-UnknownInitSize.c
Normal file
12
test/Regression/CFrontend/2004-01-01-UnknownInitSize.c
Normal file
@ -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}};
|
||||
|
Loading…
Reference in New Issue
Block a user