summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-template-argument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-template-argument.cpp')
-rw-r--r--clang/test/Parser/cxx-template-argument.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-template-argument.cpp b/clang/test/Parser/cxx-template-argument.cpp
index b3a9071785b..70945e3aa74 100644
--- a/clang/test/Parser/cxx-template-argument.cpp
+++ b/clang/test/Parser/cxx-template-argument.cpp
@@ -127,3 +127,14 @@ namespace PR18793 {
template<typename T, T> struct S {};
template<typename T> int g(S<T, (T())> *);
}
+
+namespace r360308_regression {
+ template<typename> struct S1 { static int const n = 0; };
+ template<int, typename> struct S2 { typedef int t; };
+ template<typename T> struct S3 { typename S2<S1<T>::n < 0, int>::t n; };
+
+ template<typename FT> bool f(FT p) {
+ const bool a = p.first<FT(0), b = p.second>FT(0);
+ return a == b;
+ }
+}
OpenPOWER on IntegriCloud