projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test code quality for variable length array references.
[oota-llvm.git]
/
test
/
CFrontend
/
2002-12-15-StructParameters.c
1
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
3
typedef struct
4
{
5
void *stack;
6
unsigned size;
7
unsigned avail;
8
} compile_stack_type;
9
10
void foo(void*);
11
void bar(compile_stack_type T, unsigned);
12
13
void test() {
14
compile_stack_type CST;
15
foo(&CST);
16
17
bar(CST, 12);
18
}