// Test C++ chained PCH functionality
// Without PCH
// RUN: %clang_cc1 -fsyntax-only -verify -include %s -include %s %s
// With PCH
// RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s
// With modules
// RUN: %clang_cc1 -fsyntax-only -verify -fmodules %s -chain-include %s -chain-include %s
// expected-no-diagnostics
//===----------------------------------------------------------------------===//
// Primary header for C++ chained PCH test
void ;
// Name not appearing in dependent
void ;
;
// Partially specialize
;
;
typedef TS2<int> TS2int;
;
;
;
const int TS3<T>::value;
const int TS3<T>::value2 = 1;
// Instantiate struct, but not value.
;
// Typedef
typedef int Integer;
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// Dependent header for C++ chained PCH test
// Overload function from primary
void ;
// Add function with different name
void ;
// Reopen namespace
// Specialize template from primary
;
// Partially specialize
;
// Specialize previous partial specialization
;
// Specialize the partial specialization from this file
;
;
;
;
;
;
// Instantiate TS3's members.
static const int ts3m1 = TS3<int>::value;
extern int arr;
// Redefinition of typedef
typedef int Integer;
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
void
// Should have remembered that there is a definition.
static const int ts3m2 = TS3<int>::value;
int arr;
//===----------------------------------------------------------------------===//