diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2019-05-14 21:58:59 +0000 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2019-05-14 21:58:59 +0000 |
commit | b35a2aa71f76a334a9c98c0a3c3995b5d902d2b9 (patch) | |
tree | cdff4a5d1a715d4ad622fd8f190128b54bebe440 /test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp | |
parent | 3748d41833787fcbf59cc5624e8d2b042a8991bc (diff) | |
parent | 741e05796da92b46d4f7bcbee00702ff37df6489 (diff) |
Creating branches/google/stable and tags/google/stable/2019-05-14 from r360103upstream/google/stable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/google/stable@360714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp')
-rw-r--r-- | test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp b/test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp deleted file mode 100644 index 2f3f0c68e2..0000000000 --- a/test/ASTMerge/class-template-partial-spec/Inputs/class-template-partial-spec2.cpp +++ /dev/null @@ -1,79 +0,0 @@ -template<typename T, typename P> -struct TwoOptionTemplate {}; - -template<typename T> -struct TwoOptionTemplate<T, char> { - int member; -}; - - -template<typename T> -struct TwoOptionTemplate<T, double> { - float member; -}; - -template<typename T> -struct TwoOptionTemplate<T, T> { - T** member; -}; - -TwoOptionTemplate<int, char> X0; -TwoOptionTemplate<int, double> X1; -TwoOptionTemplate<void *, wchar_t> X2; -TwoOptionTemplate<long, long> X3; -TwoOptionTemplate<int, int> X4; -TwoOptionTemplate<long, long> SingleDest; -TwoOptionTemplate<int, double> SecondDoubleDest; - - -template<int I, class C> -struct IntTemplateSpec {}; - -template<class C> -struct IntTemplateSpec<4, C> { - C member; -}; - -template<int I> -struct IntTemplateSpec<I, void *> { - double member; - static constexpr int val = I; -}; - -template<int I> -struct IntTemplateSpec<I, double> { - char member; - static constexpr int val = I; -}; - -IntTemplateSpec<4, wchar_t>Y0; -IntTemplateSpec<5, void *> Y1; -IntTemplateSpec<1, int> Y2; -IntTemplateSpec<2, int> Y3; -IntTemplateSpec<43, double> NumberDest; - -namespace One { -namespace Two { -namespace Three { - -template<class T> -class Parent {}; - -} // namespace Three - -} // namespace Two - -template<typename T, typename X> -struct Child1: public Two::Three::Parent<unsigned> { - char member; -}; - -template<class T> -struct Child1<T, One::Two::Three::Parent<T>> { - T member; -}; - -} // namespace One - -namespace Dst { One::Child1<double, One::Two::Three::Parent<double>> Z0Dst; } -One::Child1<int, float> Z1; |