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;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to