New testcase for structure argument problems.

llvm-svn: 5042
This commit is contained in:
Chris Lattner 2002-12-15 17:46:18 +00:00
parent 0a6a620830
commit 1ace1747d7
1 changed files with 16 additions and 0 deletions

View File

@ -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);
}