diff options
Diffstat (limited to 'clang/test/PCH/va_arg.c')
-rw-r--r-- | clang/test/PCH/va_arg.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/PCH/va_arg.c b/clang/test/PCH/va_arg.c new file mode 100644 index 0000000..1fb2a83 --- /dev/null +++ b/clang/test/PCH/va_arg.c @@ -0,0 +1,12 @@ +// Test this without pch. +// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - + +// Test with pch. +// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h +// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o - + +char *g0(char** argv, int argc) { return argv[argc]; } + +char *g(char **argv) { + f(g0, argv, 1, 2, 3); +} |