c: Implement C23 nullptr (N3042)
[official-gcc.git] / gcc / testsuite / gcc.dg / c2x-nullptr-2.c
blobb61056573621aa8b751b0d7c2534118655cbae9c
1 /* Test nullptr_t from <stddef.h>. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
5 #include <stddef.h>
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)");