[clang] 1a84036 - [clang][Interp] Specify c++ standard used in switch test

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 25 04:33:44 PST 2023


Author: Timm Bäder
Date: 2023-01-25T13:33:25+01:00
New Revision: 1a84036bb979c0ef34a8add2fe27ad9f0cb50b99

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

LOG: [clang][Interp] Specify c++ standard used in switch test

As a follow up for 024e4f16ca795b98a5dea371cab623f851858925.

This should fix builders defaulting to pre-c++17.
E.g. https://lab.llvm.org/buildbot/#/builders/139/builds/34918

Added: 
    

Modified: 
    clang/test/AST/Interp/switch.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/switch.cpp b/clang/test/AST/Interp/switch.cpp
index 17cae3aadc35..79b630f80074 100644
--- a/clang/test/AST/Interp/switch.cpp
+++ b/clang/test/AST/Interp/switch.cpp
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s
-// RUN: %clang_cc1 -verify=ref %s
+// RUN: %clang_cc1 -std=c++17 -fexperimental-new-constant-interpreter -verify %s
+// RUN: %clang_cc1 -std=c++17 -verify=ref %s
 
 constexpr bool isEven(int a) {
   bool v = false;


        


More information about the cfe-commits mailing list