[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 *'
This commit is contained in:
Timm Bäder 2023-07-27 08:33:23 +02:00
parent 194e2ba125
commit 2a6cfc4baa

View File

@ -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}}
}