blob: c3745ca2cb8c8e3bdd97b4e691c8a8c54ed4424e [file] [log] [blame]
// This test checks the patch for the compilation error / crash described in D18557.
// Test as a C source
// RUN: %clang_cc1 -emit-pch -x c-header -o %t %S/Inputs/__va_list_tag-typedef.h
// RUN: %clang_cc1 -fsyntax-only -include-pch %t %s
// Test as a C++ source
// RUN: %clang_cc1 -emit-pch -x c++-header -o %t %S/Inputs/__va_list_tag-typedef.h
// RUN: %clang_cc1 -x c++ -fsyntax-only -include-pch %t %s
// expected-no-diagnostics
typedef __builtin_va_list va_list_2;
void test(const char* format, ...) { va_list args; va_start( args, format ); }