diff options
Diffstat (limited to 'clang/test/PCH/Inputs/chain-cxx2.h')
-rw-r--r-- | clang/test/PCH/Inputs/chain-cxx2.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/PCH/Inputs/chain-cxx2.h b/clang/test/PCH/Inputs/chain-cxx2.h index ff22e538d4d..adc10fd8368 100644 --- a/clang/test/PCH/Inputs/chain-cxx2.h +++ b/clang/test/PCH/Inputs/chain-cxx2.h @@ -18,3 +18,15 @@ namespace ns { // Specialize template from primary template <> struct S<int> { typedef int I; }; + +// Partially specialize +template <typename T> +struct S<T &> { typedef int J; }; + +// Specialize previous partial specialization +template <> +struct S<int *> { typedef int K; }; + +// Specialize the partial specialization from this file +template <> +struct S<int &> { typedef int L; }; |