]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/nullptr20.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr20.C
1 // { dg-do run { target c++11 } }
2
3 // Test passing to ellipisis
4
5 #include <cstdio>
6 #include <cstring>
7
8 int main()
9 {
10 char buf1[64];
11 char buf2[64];
12 char buf3[64];
13
14 std::sprintf(buf1, "%p", (void*)0);
15 std::sprintf(buf2, "%p", nullptr);
16 decltype(nullptr) mynull = 0;
17 std::sprintf(buf3, "%p", nullptr);
18 return std::strcmp(buf1, buf2) != 0 || std::strcmp(buf1, buf3) != 0;
19 }
This page took 0.040113 seconds and 5 git commands to generate.