llvm.org GIT mirror llvm / 2fdd3c0 test / CFrontend / 2002-12-15-StructParameters.c
2fdd3c0

Tree @2fdd3c0 (Download .tar.gz)

2002-12-15-StructParameters.c @2fdd3c0raw · history · blame

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