diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/static16.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/static16.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/static16.C b/gcc/testsuite/g++.dg/template/static16.C new file mode 100644 index 000000000..f33ac3a55 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/static16.C @@ -0,0 +1,20 @@ +// PR c++/23691 + +namespace std { + class type_info { + bool operator==(const type_info& __arg) const; + }; +} +template <class T, T val> struct integral_constant { + static const T value = val; +}; +template< typename T > struct is_integral : integral_constant<bool,false> {}; +template <bool B> struct enable_if_c {}; +template<typename Functor> +typename enable_if_c<(is_integral<Functor>::value)>::type +operator==(const int& f, Functor g); +template<class D> +int get_deleter( std::type_info const & ti ) +{ + return ti == typeid(D); +} |