Commit 2cd5965f by Jason Merrill Committed by Jason Merrill

* g++.dg/cpp0x/nullptr20.C: Use sprintf.

From-SVN: r159153
parent c4e1e0b1
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
......
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment