[clang] bdac5de - [clang][Interp] Specify C standard in test case

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 00:34:24 PDT 2023


Author: Timm Bäder
Date: 2023-09-15T09:34:10+02:00
New Revision: bdac5de42833bc5dc4379a9548c8d172c7d15e2b

URL: https://github.com/llvm/llvm-project/commit/bdac5de42833bc5dc4379a9548c8d172c7d15e2b
DIFF: https://github.com/llvm/llvm-project/commit/bdac5de42833bc5dc4379a9548c8d172c7d15e2b.diff

LOG: [clang][Interp] Specify C standard in test case

Looks like some builders default to c99, which is a problem:
https://lab.llvm.org/buildbot/#/builders/139/builds/49750

Added: 
    

Modified: 
    clang/test/AST/Interp/c.c

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/c.c b/clang/test/AST/Interp/c.c
index 24d0300baa44218..3387ed49a0d6204 100644
--- a/clang/test/AST/Interp/c.c
+++ b/clang/test/AST/Interp/c.c
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s
-// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -pedantic -verify=pedantic-expected %s
-// RUN: %clang_cc1 -verify=ref %s
-// RUN: %clang_cc1 -pedantic -verify=pedantic-ref %s
+// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify -std=c11 %s
+// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -pedantic -verify=pedantic-expected -std=c11 %s
+// RUN: %clang_cc1 -verify=ref -std=c11 %s
+// RUN: %clang_cc1 -pedantic -verify=pedantic-ref -std=c11 %s
 
 /// expected-no-diagnostics
 


        


More information about the cfe-commits mailing list