* g++.dg/cpp0x/nullptr20.C: Use sprintf.
From-SVN: r159153
This commit is contained in:
parent
c4e1e0b1f5
commit
2cd5965fa3
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-05-07 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
|
||||
to avoid -Wc++-compat warning.
|
||||
|
||||
2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||
|
||||
PR 40989
|
||||
|
|
|
@ -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>.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue