blob: adc10fd8368148198931384295356356a2b276d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Dependent header for C++ chained PCH test
// Overload function from primary
void f(int);
// Add function with different name
void f2();
// Reopen namespace
namespace ns {
// Overload function from primary
void g(int);
// Add different name
void g2();
}
// Specialize template from primary
template <>
struct S<int> { typedef int I; };
// Partially specialize
template <typename T>
struct S<T &> { typedef int J; };
// Specialize previous partial specialization
template <>
struct S<int *> { typedef int K; };
// Specialize the partial specialization from this file
template <>
struct S<int &> { typedef int L; };
|