diff --git a/clang/test/CXX/drs/cwg31xx.cpp b/clang/test/CXX/drs/cwg31xx.cpp new file mode 100644 index 0000000000000..3c88d5ff7c607 --- /dev/null +++ b/clang/test/CXX/drs/cwg31xx.cpp @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -std=c++98 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++14 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++17 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++20 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++23 -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected +// RUN: %clang_cc1 -std=c++2c -fexceptions -fcxx-exceptions -pedantic-errors %s -verify-directives -verify=expected + + +// expected-no-diagnostics + +namespace cwg3106 { // cwg3106: 2.7 +#if __cplusplus >= 201103L +const char str[9] = R"(\u{1234})"; +#endif +} // namespace cwg3106 diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index cb0236b46e580..416c17e33a9ee 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -21563,7 +21563,7 @@

C++ defect report implementation status

[lex.universal.char] DR Redundant exclusion of (non-existent) UCNs in r-char-sequences - Unknown + Clang 2.7 3107