reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
// 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 ); }