Skip to content

Commit

Permalink
[clang][test] Try to fix constexpr-void-cast test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tbaederr committed Mar 18, 2024
1 parent 9cea288 commit e2e3624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/Sema/constexpr-void-cast.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e2e3624

Please sign in to comment.