llvm-project/clang/test/PCH/friend-template.cpp
Aaron Ballman d618f1c3b1 Remove rdar links; NFC
This removes links to rdar, which is an internal bug tracker that the
community doesn't have visibility into.

See further discussion at:
https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
2023-07-07 08:41:11 -04:00

49 lines
741 B
C++

// 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
// RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
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