aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-nullptr-2.c
blob: d7e4294b2f2570dd6094cf78e301b4df867a55ac (plain)
1
2
3
4
5
6
7
8
9
/* Test nullptr_t from <stddef.h>.  */
/* { dg-do compile } */
/* { dg-options "-std=c23 -pedantic-errors" } */

#include <stddef.h>

void f(nullptr_t);
_Static_assert (sizeof (nullptr_t) == sizeof (char *), "sizeof (nullptr_t)");
_Static_assert (_Alignof (nullptr_t) == _Alignof (char *), "_Alignof (nullptr_t)");