summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/pr51385.C
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:28:05 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:29:09 +0000
commit03ac50856c9fc8c96b7a17239ee40a10397750a7 (patch)
treea648c6d3428e4757e003f6ed1748adb9613065db /gcc/testsuite/g++.dg/template/pr51385.C
parent34efdaf078b01a7387007c4e6bde6db86384c4b7 (diff)
downloadgcc-tarball-03ac50856c9fc8c96b7a17239ee40a10397750a7.tar.gz
gcc 7.2.0
This is imported manually due to a bug in the tarball import script. See the baserock-dev mailing list archives (November 2017) for a more detailed explaination of the issue.
Diffstat (limited to 'gcc/testsuite/g++.dg/template/pr51385.C')
-rw-r--r--gcc/testsuite/g++.dg/template/pr51385.C24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/g++.dg/template/pr51385.C b/gcc/testsuite/g++.dg/template/pr51385.C
deleted file mode 100644
index e76995467c..0000000000
--- a/gcc/testsuite/g++.dg/template/pr51385.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// PR c++/51385
-
-template <__SIZE_TYPE__ N> struct NTmpl;
-template <typename T, typename U, typename V = NTmpl<sizeof(T *)> >
-struct PtrConvs {
- enum { bad = 1 };
-};
-
-template <typename Target, typename Source>
-struct PtrConvs<Target, Source, NTmpl<sizeof (*(Target **)0 = (Source *)0)> >;
-
-template<typename T> struct test { static const bool value = true; };
-template<> struct test<short> { static const bool value = false; };
-
-template <typename T>
-struct FussyTemplate
-{
- int sa[test<T>::value ? 1 : -1];
-};
-
-struct B { };
-
-typedef char chk[1];
-typedef char chk[PtrConvs<FussyTemplate<short>, B>::bad];