blob: 989819b64fbe3564d2d929d40ea2ee0b123adf2c (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Test this without pch.
// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
// Test with pch.
// RUN: %clang_cc1 -emit-pch -o %t %s
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
// rdar://12627738
namespace rdar12627738 {
class RecyclerTag {
template <typename T> friend class Recycler;
};
}
#else
namespace rdar12627738 {
template<typename TTag>
class CRN {
template <typename T> friend class Recycler;
};
template<typename T>
class Recycler {
public:
Recycler ();
};
template<typename T>
Recycler<T>::Recycler ()
{
}
}
#endif
|