Skip to content

Commit e2e3624

Browse files
committed
[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.
1 parent 9cea288 commit e2e3624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Sema/constexpr-void-cast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c
2-
// RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic
1+
// RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c -std=c11
2+
// RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic -std=c11
33
//
44
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify=cxx
55
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -pedantic -verify=cxx-pedantic

0 commit comments

Comments
 (0)