2009-04-18 04:06:59 +08:00
|
|
|
// Test this without pch.
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o -
|
2009-04-18 04:06:59 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h
|
2009-04-18 13:55:16 +08:00
|
|
|
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o -
|
2009-04-18 04:06:59 +08:00
|
|
|
|
|
|
|
char *g0(char** argv, int argc) { return argv[argc]; }
|
|
|
|
|
|
|
|
char *g(char **argv) {
|
|
|
|
f(g0, argv, 1, 2, 3);
|
|
|
|
}
|