Files
clang-p2996/clang/test/Sema/nullptr-prec2x.c
Aaron Ballman 9c4ade0623 [C23] Rename C2x->C23 in diagnostics
This renames C2x to C23 in diagnostic identifiers and messages. The
changes were made mechanically.
2023-08-11 08:42:01 -04:00

9 lines
239 B
C

// RUN: %clang_cc1 -fsyntax-only -verify -std=c17 -ffreestanding -Wc2x-compat %s
#include <stddef.h>
int nullptr; // expected-warning {{'nullptr' is a keyword in C23}}
nullptr_t val; // expected-error {{unknown type name 'nullptr_t'}}