From: Paolo Carlini Date: Thu, 5 Mar 2015 09:21:39 +0000 (+0000) Subject: 2015-03-05 Paolo Carlini X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b864d18e89aba6151b8148489904f580caff697;p=gcc.git 2015-03-05 Paolo Carlini Fix last commit. From-SVN: r221208 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2dff949ae10..13f4804c360 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-03-05 Paolo Carlini + + Fix last commit. + 2015-03-05 Paolo Carlini PR c++/64665 diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist92.C b/gcc/testsuite/g++.dg/cpp0x/initlist92.C index 527533cf961..81a63182f0e 100644 --- a/gcc/testsuite/g++.dg/cpp0x/initlist92.C +++ b/gcc/testsuite/g++.dg/cpp0x/initlist92.C @@ -4,45 +4,44 @@ #include #include -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 arg) +bool Test2(std::initializer_list) { 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 arg) +bool Test4(std::initializer_list) { return true; }