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