forked from OSchip/llvm-project
New testcase for structure argument problems.
llvm-svn: 5042
This commit is contained in:
parent
0a6a620830
commit
1ace1747d7
|
@ -0,0 +1,16 @@
|
|||
typedef struct
|
||||
{
|
||||
void *stack;
|
||||
unsigned size;
|
||||
unsigned avail;
|
||||
} compile_stack_type;
|
||||
|
||||
void foo(void*);
|
||||
void bar(compile_stack_type T, unsigned);
|
||||
|
||||
void test() {
|
||||
compile_stack_type CST;
|
||||
foo(&CST);
|
||||
|
||||
bar(CST, 12);
|
||||
}
|
Loading…
Reference in New Issue