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 // REQUIRES: x86-registered-target 4 5 // Test with pch. 6 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h 7 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o - 8 9 char *g0(char** argv, int argc) { return argv[argc]; } 10 11 char *g(char **argv) { 12 f(g0, argv, 1, 2, 3); 13 } 14 15 char *i0(char **argv, int argc) { return argv[argc]; } 16 17 char *i(char **argv) { 18 h(i0, argv, 1, 2, 3); 19 } 20