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
37 lines
669 B
C++
37 lines
669 B
C++
// Test this without pch.
|
|
// RUN: %clang_cc1 -fsyntax-only -emit-llvm-only %s
|
|
|
|
// Test with pch.
|
|
// RUN: touch %t.empty.cpp
|
|
// RUN: %clang_cc1 -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -include-pch %t -emit-llvm-only %t.empty.cpp
|
|
|
|
// RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s
|
|
// RUN: %clang_cc1 -include-pch %t -emit-llvm-only %t.empty.cpp
|
|
|
|
//#pragma ms_struct on
|
|
|
|
template< typename T >
|
|
class Templated
|
|
{
|
|
public:
|
|
struct s;
|
|
};
|
|
|
|
|
|
class Foo
|
|
{
|
|
private:
|
|
|
|
class Bar
|
|
{
|
|
private:
|
|
class BarTypes { public: virtual void Func(); };
|
|
class BarImpl {};
|
|
friend class Foo;
|
|
};
|
|
|
|
|
|
friend class Templated< Bar::BarImpl >::s;
|
|
};
|