Douglas Gregor | f7dac08 | 2009-04-17 20:06:59 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - |
Douglas Gregor | f7dac08 | 2009-04-17 20:06:59 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 5 | // 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 Gregor | f7dac08 | 2009-04-17 20:06:59 +0000 | [diff] [blame] | 7 | |
Douglas Gregor | f7dac08 | 2009-04-17 20:06:59 +0000 | [diff] [blame] | 8 | char *g0(char** argv, int argc) { return argv[argc]; } |
| 9 | |
| 10 | char *g(char **argv) { |
| 11 | f(g0, argv, 1, 2, 3); |
| 12 | } |