[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx-friends.h
blob2d20a4d26978dc16e8f6f5f96e64820c3ee06fbe
1 // Header for PCH test cxx-friends.cpp
3 class A {
4 int x;
5 friend class F;
6 };
8 namespace PR12585 {
9 struct future_base {
10 template<typename> class setter;
12 template<typename> class promise {
13 // We used to inject this into future_base with no access specifier,
14 // then crash during AST writing.
15 template<typename> friend class future_base::setter;
16 int k;
20 namespace Lazy {
21 struct S {
22 friend void doNotDeserialize();
26 // Reduced testcase from libc++'s <valarray>. Used to crash with modules
27 // enabled.
28 namespace std {
30 template <class T> struct valarray;
32 template <class T> struct valarray {
33 valarray();
34 template <class U> friend struct valarray;
35 template <class U> friend U *begin(valarray<U> &v);
38 struct gslice {
39 valarray<int> size;
40 gslice() {}