Meador Inge | fb40e3f | 2012-07-01 15:57:25 +0000 | [diff] [blame] | 1 | // PR13189 |
| 2 | // rdar://problem/11741429 |
| 3 | // Test this without pch. |
| 4 | // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/Inputs/__va_list_tag.h %s -emit-llvm -o - |
| 5 | |
| 6 | // Test with pch. |
| 7 | // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -x c-header -o %t %S/Inputs/__va_list_tag.h |
| 8 | // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -verify |
| 9 | |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame^] | 10 | // expected-no-diagnostics |
| 11 | |
Meador Inge | fb40e3f | 2012-07-01 15:57:25 +0000 | [diff] [blame] | 12 | int myvprintf(const char *fmt, va_list args) { |
| 13 | return myvfprintf(fmt, args); |
| 14 | } |