From e2e3624fae669f85de1445bf7037ff29feb30905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 18 Mar 2024 15:34:31 +0100 Subject: [PATCH] [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. --- clang/test/Sema/constexpr-void-cast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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