[clang] e2e3624 - [clang][test] Try to fix constexpr-void-cast test
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 07:35:53 PDT 2024
Author: Timm Bäder
Date: 2024-03-18T15:35:39+01:00
New Revision: e2e3624fae669f85de1445bf7037ff29feb30905
URL: https://github.com/llvm/llvm-project/commit/e2e3624fae669f85de1445bf7037ff29feb30905
DIFF: https://github.com/llvm/llvm-project/commit/e2e3624fae669f85de1445bf7037ff29feb30905.diff
LOG: [clang][test] Try to fix constexpr-void-cast test
The test currenlty fails:
https://lab.llvm.org/buildbot/#/builders/139/builds/61628
because it emits a C11 warning when compiling as C. Try to fix that
be defining the C standard to use.
Added:
Modified:
clang/test/Sema/constexpr-void-cast.c
Removed:
################################################################################
diff --git a/clang/test/Sema/constexpr-void-cast.c b/clang/test/Sema/constexpr-void-cast.c
index c5caa3b9e58feb..91e4027f67fe38 100644
--- a/clang/test/Sema/constexpr-void-cast.c
+++ b/clang/test/Sema/constexpr-void-cast.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c
-// RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic
+// RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c -std=c11
+// RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic -std=c11
//
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify=cxx
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -pedantic -verify=cxx-pedantic
More information about the cfe-commits
mailing list