1 // Test this without pch. 2 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - 3 4 // Test with pch. 5 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h 6 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o - 7 8 char *g0(char** argv, int argc) { return argv[argc]; } 9 10 char *g(char **argv) { 11 f(g0, argv, 1, 2, 3); 12 } 13