================ @@ -0,0 +1,117 @@ +// RUN: %clang_cc1 -verify=expected,c2y -pedantic -std=c2y %s +// RUN: %clang_cc1 -verify=expected,c2y,compat -Wpre-c2y-compat -std=c2y %s +// RUN: %clang_cc1 -verify=expected,ext -pedantic -std=c23 %s +// RUN: %clang_cc1 -verify=expected,cpp -pedantic -x c++ -Wno-c11-extensions %s + + +/* WG14 N3353: Clang 21 + * Obsolete implicitly octal literals and add delimited escape sequences + */ + +constexpr int i = 0234; // c2y-warning {{octal literals without a '0o' prefix are deprecated}} ---------------- AaronBallman wrote:
Each of those cases is as an expression, and we have coverage for expressions already (e.g., `0O1234 == 0o1234`), so I'm not certain what other test coverage we'd get from that. https://github.com/llvm/llvm-project/pull/131626 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits