2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>

Fix last commit.

From-SVN: r221208
This commit is contained in:
Paolo Carlini 2015-03-05 09:21:39 +00:00 committed by Paolo Carlini
parent 512141f41a
commit 9b864d18e8
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix last commit.
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64665

View File

@ -4,45 +4,44 @@
#include <string>
#include <cassert>
bool Test1(const bool arg)
bool Test1(bool)
{
return true;
}
bool Test1(const std::string arg)
bool Test1(std::string)
{
return false;
}
bool Test2(const int arg)
bool Test2(int)
{
return false;
}
bool Test2(const std::initializer_list<int> arg)
bool Test2(std::initializer_list<int>)
{
return true;
}
struct S
{
S(int _a) : a(_a){}
int getA() const { return a; }
S(int _a) : a(_a) {}
private:
int a;
};
bool Test3(const int arg)
bool Test3(int)
{
return true;
}
bool Test3(const S arg)
bool Test3(S)
{
return false;
}
bool Test4(const bool arg)
bool Test4(bool)
{
return false;
}
bool Test4(const std::initializer_list<std::string> arg)
bool Test4(std::initializer_list<std::string>)
{
return true;
}