brintos

brintos / llvm-project-archived public Read only

0
0
Text · 741 B · 3a877aa Raw
49 lines · cpp
1// Test this without pch.2// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t %s6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7 8// RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s9// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s10 11// expected-no-diagnostics12 13#ifndef HEADER14#define HEADER15 16namespace rdar12627738 {17 18class RecyclerTag {19    template <typename T> friend class Recycler;20};21 22}23 24#else25 26namespace rdar12627738 {27 28template<typename TTag>29class CRN {30    template <typename T> friend class Recycler;31};32 33 34template<typename T>35class Recycler {36public:37    Recycler ();38};39 40 41template<typename T>42Recycler<T>::Recycler ()43{44}45 46}47 48#endif49