diff options
Diffstat (limited to 'test/PCH/va_arg.c')
-rw-r--r-- | test/PCH/va_arg.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/PCH/va_arg.c b/test/PCH/va_arg.c new file mode 100644 index 000000000000..75cee06d656f --- /dev/null +++ b/test/PCH/va_arg.c @@ -0,0 +1,12 @@ +// Test this without pch. +// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - && + +// Test with pch. +// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h && +// RUN: clang-cc -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); +} |