Debian Codegraph @

gcc/testsuite/gcc.dg/c23-nullptr-2.c

raw
1 /* Test nullptr_t from <stddef.h>. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 #include <stddef.h>
6
7 void f(nullptr_t);
8 _Static_assert (sizeof (nullptr_t) == sizeof (char *), "sizeof (nullptr_t)");
9 _Static_assert (_Alignof (nullptr_t) == _Alignof (char *), "_Alignof (nullptr_t)");