annotate clang/test/SemaCXX/templated-friend-decl.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 template <typename T>
anatofuz
parents:
diff changeset
4 struct Foo {
anatofuz
parents:
diff changeset
5 template <typename U>
anatofuz
parents:
diff changeset
6 struct Bar {};
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // The templated declaration for class Bar should not be instantiated when
anatofuz
parents:
diff changeset
9 // Foo<int> is. This is to protect against PR5848; for now, this "parses" but
anatofuz
parents:
diff changeset
10 // requires a rewrite of the templated friend code to be properly fixed.
anatofuz
parents:
diff changeset
11 template <typename U>
anatofuz
parents:
diff changeset
12 friend struct Bar;
anatofuz
parents:
diff changeset
13 };
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 Foo<int> x;