diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2015-03-05 09:21:39 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-03-05 09:21:39 +0000 |
commit | 9b864d18e89aba6151b8148489904f580caff697 (patch) | |
tree | b3fed7cd58ef4657d414b0a758af6703ab6adfee | |
parent | 512141f41a344cd2b0f317e013e286e412077bf1 (diff) | |
download | gcc-9b864d18e89aba6151b8148489904f580caff697.zip gcc-9b864d18e89aba6151b8148489904f580caff697.tar.gz gcc-9b864d18e89aba6151b8148489904f580caff697.tar.bz2 |
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix last commit.
From-SVN: r221208
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <paolo.carlini@oracle.com> + Fix last commit. + +2015-03-05 Paolo Carlini <paolo.carlini@oracle.com> + 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 <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; } |