blob: 27803f7d03fc06b17432c7537a44711a08c53a3a [file] [log] [blame]
/* Test that we don't lose side-effects when converting from nullptr_t. */
/* { dg-do run } */
/* { dg-options "-std=c2x -pedantic-errors" } */
int i;
nullptr_t fn () { ++i; return nullptr; }
int
main ()
{
int *p = fn ();
if (i != 1)
__builtin_abort ();
}