[clang] 2a6cfc4 - [clang][Interp] Try to fix a test on Windows
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 26 23:34:40 PDT 2023
Author: Timm Bäder
Date: 2023-07-27T08:34:15+02:00
New Revision: 2a6cfc4baa784ff299a81f8c5e7163207c93eafe
URL: https://github.com/llvm/llvm-project/commit/2a6cfc4baa784ff299a81f8c5e7163207c93eafe
DIFF: https://github.com/llvm/llvm-project/commit/2a6cfc4baa784ff299a81f8c5e7163207c93eafe.diff
LOG: [clang][Interp] Try to fix a test on Windows
This seems to fail on Windows:
Interp\literals.cpp Line 946: cast to smaller integer type 'long' from 'char *'
Added:
Modified:
clang/test/AST/Interp/literals.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/Interp/literals.cpp b/clang/test/AST/Interp/literals.cpp
index c6f293886f90dc..10e0330daecbda 100644
--- a/clang/test/AST/Interp/literals.cpp
+++ b/clang/test/AST/Interp/literals.cpp
@@ -943,6 +943,6 @@ namespace PointerCasts {
// expected-error {{must be initialized by a constant expression}} \
// expected-note {{cast that performs the conversions of a reinterpret_cast}}
- int array[(long)(char*)0]; // ref-warning {{variable length array folded to constant array}} \
- // expected-warning {{variable length array folded to constant array}}
+ int array[(intptr_t)(char*)0]; // ref-warning {{variable length array folded to constant array}} \
+ // expected-warning {{variable length array folded to constant array}}
}
More information about the cfe-commits
mailing list