2010-08-24 08:50:16 +08:00
|
|
|
// Test C++ chained PCH functionality
|
|
|
|
|
|
|
|
// Without PCH
|
2010-10-20 05:14:46 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -include %S/Inputs/chain-cxx1.h -include %S/Inputs/chain-cxx2.h %s
|
2010-08-24 08:50:16 +08:00
|
|
|
|
|
|
|
// With PCH
|
2010-10-20 05:14:46 +08:00
|
|
|
// RUN: %clang_cc1 -x c++ -emit-pch -o %t1 %S/Inputs/chain-cxx1.h
|
|
|
|
// RUN: %clang_cc1 -x c++ -emit-pch -o %t2 %S/Inputs/chain-cxx2.h -include-pch %t1 -chained-pch
|
2010-08-24 08:50:16 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -include-pch %t2 %s
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
f();
|
|
|
|
f(1);
|
|
|
|
pf();
|
|
|
|
f2();
|
|
|
|
|
|
|
|
ns::g();
|
|
|
|
ns::g(1);
|
|
|
|
ns::pg();
|
|
|
|
ns::g2();
|
|
|
|
|
2010-08-25 06:50:24 +08:00
|
|
|
typedef S<double>::G T1;
|
|
|
|
typedef S<double *>::H T2;
|
|
|
|
typedef S<int>::I T3;
|
|
|
|
typedef S<double &>::J T4;
|
|
|
|
typedef S<int *>::K T5;
|
|
|
|
typedef S<int &>::L T6;
|
2010-08-24 08:50:16 +08:00
|
|
|
}
|