Added tests for a gcc specific bug

[SVN r19401]
This commit is contained in:
John Maddock
2003-08-02 11:53:35 +00:00
parent d8741215a5
commit 93dd77869e

View File

@ -15,6 +15,18 @@
namespace boost_no_explicit_function_template_arguments{
struct foo
{
template<class T> int bar(){return 0;}
template<int I> int bar(){return 1;}
};
int test_0()
{
return 0;
}
template <int i>
bool foo_17041(int j)
{
@ -23,6 +35,11 @@ bool foo_17041(int j)
int test()
{
foo f;
int a = f.template bar<char>();
int b = f.template bar<2>();
if((a !=0) || (b != 1))return -1;
if(0 == foo_17041<8>(8)) return -1;
if(0 == foo_17041<4>(4)) return -1;
if(0 == foo_17041<5>(5)) return -1;