blob: 05fbe57b19714f549600fcf5236574ed9edb8d38 [file] [log] [blame]
// { dg-do run { target c++11 } }
typedef decltype(nullptr) nullptr_t;
int i;
nullptr_t n;
const nullptr_t& f() { ++i; return n; }
nullptr_t g() { return f(); }
int main()
{
g();
if (i != 1)
__builtin_abort ();
}