2009-06-02 17:58:47 +00:00
|
|
|
// Test this without pch.
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o -
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h
|
2009-06-02 17:58:47 +00:00
|
|
|
// 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);
|
|
|
|
}
|