diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h b/gcc-4.9/gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h new file mode 100644 index 000000000..e0b7d68c1 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h @@ -0,0 +1,14 @@ +template < typename T > struct integral_c { + static const T value = 0; +}; +struct is_reference:integral_c < bool > { }; +template < class > struct is_function_ptr_helper { }; +template < bool > struct is_function_chooser; + +template <> struct is_function_chooser <0 > +{ + template < typename T > struct result_:is_function_ptr_helper < T * > { }; +}; + +template < typename T > struct is_function_impl:is_function_chooser < + is_reference::value >::result_ < T > { }; |