[clang] 646559e - [clang][Interp][NFC] Make a test array smaller
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu May 2 08:28:20 PDT 2024
Author: Timm Bäder
Date: 2024-05-02T17:28:10+02:00
New Revision: 646559e90b8370a2d6459b65ecca31a98b5fad0e
URL: https://github.com/llvm/llvm-project/commit/646559e90b8370a2d6459b65ecca31a98b5fad0e
DIFF: https://github.com/llvm/llvm-project/commit/646559e90b8370a2d6459b65ecca31a98b5fad0e.diff
LOG: [clang][Interp][NFC] Make a test array smaller
The large size doesn't add anything here, at least not with the
test in its current form.
Added:
Modified:
clang/test/AST/Interp/arrays.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/Interp/arrays.cpp b/clang/test/AST/Interp/arrays.cpp
index 607d67bde020c0..abfcd09338ca27 100644
--- a/clang/test/AST/Interp/arrays.cpp
+++ b/clang/test/AST/Interp/arrays.cpp
@@ -562,10 +562,10 @@ namespace LocalVLA {
}
}
-char melchizedek[2200000000];
+char melchizedek[2];
typedef decltype(melchizedek[1] - melchizedek[0]) ptr
diff _t;
-constexpr ptr
diff _t d1 = &melchizedek[0x7fffffff] - &melchizedek[0]; // ok
-constexpr ptr
diff _t d3 = &melchizedek[0] - &melchizedek[0x80000000u]; // ok
+constexpr ptr
diff _t d1 = &melchizedek[1] - &melchizedek[0]; // ok
+constexpr ptr
diff _t d3 = &melchizedek[0] - &melchizedek[1]; // ok
/// GH#88018
const int SZA[] = {};
More information about the cfe-commits
mailing list