aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2x-nullptr-2.c
blob: b61056573621aa8b751b0d7c2534118655cbae9c (plain)
1
2
3
4
5
6
7
8
9
/* Test nullptr_t from <stddef.h>.  */
/* { dg-do compile } */
/* { dg-options "-std=c2x -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)");