diff options
Diffstat (limited to 'test/Coverage/cxx-language-features.inc')
| -rw-r--r-- | test/Coverage/cxx-language-features.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/Coverage/cxx-language-features.inc b/test/Coverage/cxx-language-features.inc index 31b50be33589..1e3b0744950a 100644 --- a/test/Coverage/cxx-language-features.inc +++ b/test/Coverage/cxx-language-features.inc @@ -25,3 +25,43 @@ enum E1 { EC1 }; template <E1 v> class C1 {}; template <E1 v> C1<v> f1() { return C1<v>(); } void f2() { f1<EC1>(); } + +// Friend declarations +struct FriendlyStruct { + friend bool operator==(FriendlyStruct, FriendlyStruct) { return true; } + friend struct FriendedStruct; +}; + +struct FriendedStruct { }; + +// Using declaration +namespace provider { + void foo(); +} +namespace user { + using provider::foo; +} + +// Empty declaration +; + +// Template specialization declarations +template<typename T> class ClassTemplateSpecialization; + +template<> +class ClassTemplateSpecialization<bool> { }; + +template<typename T, bool> struct ClassTemplatePartialSpecialization; + +template<typename T> +struct ClassTemplatePartialSpecialization<T, true> { }; + +// Access specifier +struct AccessSpec { +private: +}; + +// Variable template +template <typename T> T varTemplate = 0; + +static_assert(true, ""); |
