Author: Ross Kirsling
Date: 2026-11-10T11:22:02Z
New Revision: 3fcae107a73f5bca971561cb018d6ea97f2bc413

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

LOG: [clang][bytecode][NFC] Explicitly set gnu++17 for arrays test. (#240438)

This test uses variable-length arrays, which are a GNU extension.
Although `-std=gnu++17` is the default, we oughtn't leave it implicit
here, as neither `-std=c++17` nor `-std=gnu++20` meet the expectations
of the test.

Added: 
    

Modified: 
    clang/test/AST/ByteCode/arrays.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/ByteCode/arrays.cpp 
b/clang/test/AST/ByteCode/arrays.cpp
index 0c3a69c8618151..b40307531cafc2 100644
--- a/clang/test/AST/ByteCode/arrays.cpp
+++ b/clang/test/AST/ByteCode/arrays.cpp
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -fexperimental-new-constant-interpreter 
-verify=expected,both            %s
+// RUN: %clang_cc1 -fexperimental-new-constant-interpreter 
-verify=expected,both -std=gnu++17 %s
 // RUN: %clang_cc1 -fexperimental-new-constant-interpreter 
-verify=expected,both -std=c++20 %s
-// RUN: %clang_cc1 -verify=ref,both            %s
+// RUN: %clang_cc1 -verify=ref,both -std=gnu++17 %s
 // RUN: %clang_cc1 -verify=ref,both -std=c++20 %s
 
 constexpr int m = 3;


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to