diff options
author | Jason Merrill <jason@redhat.com> | 2010-05-07 09:53:46 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-05-07 09:53:46 -0400 |
commit | 2cd5965fa3cd3586a642e75c76a256f36f8a99d0 (patch) | |
tree | 7367e776688171055e60393c0b3b834d5022c665 /gcc/testsuite | |
parent | c4e1e0b1f5ec5a6d758c4ead7c7f0a88f1aad296 (diff) | |
download | gcc-2cd5965fa3cd3586a642e75c76a256f36f8a99d0.zip gcc-2cd5965fa3cd3586a642e75c76a256f36f8a99d0.tar.gz gcc-2cd5965fa3cd3586a642e75c76a256f36f8a99d0.tar.bz2 |
* g++.dg/cpp0x/nullptr20.C: Use sprintf.
From-SVN: r159153
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/nullptr20.C | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09a98b3..2ddbe95 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-05-07 Jason Merrill <jason@redhat.com> + + * g++.dg/cpp0x/nullptr20.C: Use sprintf. + 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * gcc.dg/lto/20100423-2_0.c: Include <stdio.h>. diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr20.C b/gcc/testsuite/g++.dg/cpp0x/nullptr20.C index b7457ca..a959b00 100644 --- a/gcc/testsuite/g++.dg/cpp0x/nullptr20.C +++ b/gcc/testsuite/g++.dg/cpp0x/nullptr20.C @@ -11,7 +11,7 @@ int main() char buf1[64]; char buf2[64]; - std::snprintf(buf1, sizeof(buf1), "%p", (void*)0); - std::snprintf(buf2, sizeof(buf2), "%p", nullptr); + std::sprintf(buf1, "%p", (void*)0); + std::sprintf(buf2, "%p", nullptr); return std::strcmp(buf1, buf2) != 0; } |