From 9b864d18e89aba6151b8148489904f580caff697 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 5 Mar 2015 09:21:39 +0000 Subject: [PATCH] 2015-03-05 Paolo Carlini Fix last commit. From-SVN: r221208 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/cpp0x/initlist92.C | 19 +++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2dff949..13f4804 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2015-03-05 Paolo Carlini + Fix last commit. + +2015-03-05 Paolo Carlini + PR c++/64665 * g++.dg/cpp0x/initlist92.C: New. diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist92.C b/gcc/testsuite/g++.dg/cpp0x/initlist92.C index 527533c..81a6318 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; } -- 2.7.4