freebsd-skq/test/PCH/va_arg.c

13 lines
413 B
C
Raw Normal View History

2009-06-02 17:58:47 +00:00
// Test this without pch.
2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -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.
2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h
// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o -
2009-06-02 17:58:47 +00:00
char *g0(char** argv, int argc) { return argv[argc]; }
char *g(char **argv) {
f(g0, argv, 1, 2, 3);
}