// RUN: %clang_cc1 -fchar8_t -std=c++17 -verify %s
// RUN: %clang_cc1 -std=c++2a -verify %s
char8_t a = u8'a';
char8_t b = u8"foo";
char8_t c = 'a';
char8_t d = "foo"; // expected-error {{initializing 'char8_t' array with plain string literal}} expected-note {{add 'u8' prefix}}
char e = u8'a';
char f = u8"foo";
// expected-error@-2 {{initialization of char array with UTF-8 string literal is not permitted by '-fchar8_t'}}
// expected-error@-4 {{ISO C++20 does not permit initialization of char array with UTF-8 string literal}}
char g = 'a';
char h = "foo";
void
void ;
void ;
void
int &;
float &;
void
void
void
static_assert;
static_assert;
static_assert;