diff options
Diffstat (limited to 'test/nullptr.c')
-rw-r--r-- | test/nullptr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nullptr.c b/test/nullptr.c new file mode 100644 index 0000000..8f5b436 --- /dev/null +++ b/test/nullptr.c @@ -0,0 +1,4 @@ +typeof(nullptr) x = 0; +_Static_assert(sizeof x == sizeof(char *)); +int *y = nullptr; +bool z = nullptr; |