]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/nullptr28.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr28.C
CommitLineData
ec62cbe1
JM
1// { dg-do run { target c++11 } }
2
3typedef decltype(nullptr) nullptr_t;
4
5int i;
6nullptr_t n;
7const nullptr_t& f() { ++i; return n; }
8
9nullptr_t g() { return f(); }
10
11int main()
12{
13 g();
14 if (i != 1)
15 __builtin_abort ();
16}
This page took 5.400284 seconds and 5 git commands to generate.