Chris Lattner | e3912ee | 2002-12-15 17:46:18 +0000 | [diff] [blame^] | 1 | typedef struct |
2 | { | ||||
3 | void *stack; | ||||
4 | unsigned size; | ||||
5 | unsigned avail; | ||||
6 | } compile_stack_type; | ||||
7 | |||||
8 | void foo(void*); | ||||
9 | void bar(compile_stack_type T, unsigned); | ||||
10 | |||||
11 | void test() { | ||||
12 | compile_stack_type CST; | ||||
13 | foo(&CST); | ||||
14 | |||||
15 | bar(CST, 12); | ||||
16 | } |