[clang] 645b6da - [Clang] Fix stmtexprs.c to not specify -pedantic (#226161)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 07:47:04 PDT 2026
Author: ahmed mohamed kamel
Date: 2026-09-24T14:46:58Z
New Revision: 645b6da50af57797b9e7ca5208d59bdd1b3dba6b
URL: https://github.com/llvm/llvm-project/commit/645b6da50af57797b9e7ca5208d59bdd1b3dba6b
DIFF: https://github.com/llvm/llvm-project/commit/645b6da50af57797b9e7ca5208d59bdd1b3dba6b.diff
LOG: [Clang] Fix stmtexprs.c to not specify -pedantic (#226161)
Fixes a buildbot failure (llvm-clang-x86_64-sie-ubuntu-fast) where
`stmtexprs.c` didn't specify a C standard, causing `_Static_assert` and
`_Generic` to be flagged as C11 extensions on targets that default to an
older standard.
This removes `-pedantic` from the RUN line because the test does not
test any extension behavior anyway.
Follow-up to #225597.
Added:
Modified:
clang/test/Sema/stmtexprs.c
Removed:
################################################################################
diff --git a/clang/test/Sema/stmtexprs.c b/clang/test/Sema/stmtexprs.c
index baddba18445c8..9369543fa37af 100644
--- a/clang/test/Sema/stmtexprs.c
+++ b/clang/test/Sema/stmtexprs.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -Wno-gnu-statement-expression
+// RUN: %clang_cc1 %s -verify -fsyntax-only
int stmtexpr_fn(void);
void stmtexprs(int i) {
More information about the cfe-commits
mailing list