Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / friend-template.cpp
blob3a877aa43b51c24e07fb9b2f59212371e4ffbb0f
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
4 // Test with pch.
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
8 // RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s
9 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
11 // expected-no-diagnostics
13 #ifndef HEADER
14 #define HEADER
16 namespace rdar12627738 {
18 class RecyclerTag {
19 template <typename T> friend class Recycler;
24 #else
26 namespace rdar12627738 {
28 template<typename TTag>
29 class CRN {
30 template <typename T> friend class Recycler;
34 template<typename T>
35 class Recycler {
36 public:
37 Recycler ();
41 template<typename T>
42 Recycler<T>::Recycler ()
48 #endif