diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-27 18:15:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-27 18:15:56 +0000 |
commit | 21b691d573509c66336fd406c438e832c3ff7354 (patch) | |
tree | 4101bac26f6bb3701ef2dbeb0f6e442ed6b6ae81 /clang/INPUTS/macro_pounder_fn.c | |
parent | 00a6be6f7b78ba2647d69fa398e85a2ad43bf102 (diff) | |
download | bcm5719-llvm-21b691d573509c66336fd406c438e832c3ff7354.tar.gz bcm5719-llvm-21b691d573509c66336fd406c438e832c3ff7354.zip |
add some of the smaller test inputs I use.
llvm-svn: 39073
Diffstat (limited to 'clang/INPUTS/macro_pounder_fn.c')
-rw-r--r-- | clang/INPUTS/macro_pounder_fn.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/INPUTS/macro_pounder_fn.c b/clang/INPUTS/macro_pounder_fn.c new file mode 100644 index 00000000000..73f40a1d6db --- /dev/null +++ b/clang/INPUTS/macro_pounder_fn.c @@ -0,0 +1,17 @@ + +// This pounds on macro expansion for performance reasons. This is currently +// heavily constrained by darwin's malloc. + +// Function-like macros. +#define A0(A, B) A B +#define A1(A, B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) +#define A2(A, B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) +#define A3(A, B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) +#define A4(A, B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) +#define A5(A, B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) +#define A6(A, B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) +#define A7(A, B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) +#define A8(A, B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) + +A8(a, b) + |