[clang] [Clang] Ignore -fchar8_t in C (PR #138716)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 14:04:58 PDT 2025


================
@@ -5,6 +5,7 @@
 // RUN: %clang_cc1 -std=c++17 -verify %s
 // RUN: %clang_cc1 -std=c++17 -verify %s -fno-char8_t
 // RUN: %clang_cc1 -std=c++20 -verify %s -fno-char8_t
+// RUN: %clang_cc1 -x c -verify %s -fchar8_t
----------------
cor3ntin wrote:

`ShouldParseIf` seems never to diagnose. I wanted to ask you about that because it might be surprising
https://godbolt.org/z/6oaPfoWPj 

https://github.com/llvm/llvm-project/pull/138716


More information about the cfe-commits mailing list