OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/44157
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr20.C
1
// { dg-do run }
2
// { dg-options "-std=c++0x" }
3
4
// Test passing to ellipisis
5
6
#include <cstdio>
7
#include <cstring>
8
9
int main()
10
{
11
char buf1[64];
12
char buf2[64];
13
14
std::sprintf(buf1, "%p", (void*)0);
15
std::sprintf(buf2, "%p", nullptr);
16
return std::strcmp(buf1, buf2) != 0;
17
}