blob: 1fb2a838e4f73e21739dbf22b9bbd567c17f04fc [file] [log] [blame]
Douglas Gregorf7dac082009-04-17 20:06:59 +00001// Test this without pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00002// RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o -
Douglas Gregorf7dac082009-04-17 20:06:59 +00003
4// Test with pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00005// 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 -
Douglas Gregorf7dac082009-04-17 20:06:59 +00007
Douglas Gregorf7dac082009-04-17 20:06:59 +00008char *g0(char** argv, int argc) { return argv[argc]; }
9
10char *g(char **argv) {
11 f(g0, argv, 1, 2, 3);
12}