Travis: Try to fix test
This commit is contained in:
parent
3dc34f1515
commit
fb2198fd6b
|
@ -928,10 +928,8 @@ private:
|
||||||
|
|
||||||
void array_index_24() {
|
void array_index_24() {
|
||||||
// ticket #1492 and #1539
|
// ticket #1492 and #1539
|
||||||
// CHAR_MAX can be equal to SCHAR_MAX or UCHAR_MAX depending on the environment.
|
|
||||||
// This test should work for both environments.
|
|
||||||
std::ostringstream charMaxPlusOne;
|
std::ostringstream charMaxPlusOne;
|
||||||
charMaxPlusOne << (CHAR_MAX+1);
|
charMaxPlusOne << (settings0.defaultSign == 'u' ? 256 : 128);
|
||||||
check(("void f(char n) {\n"
|
check(("void f(char n) {\n"
|
||||||
" int a[n];\n" // n <= CHAR_MAX
|
" int a[n];\n" // n <= CHAR_MAX
|
||||||
" a[-1] = 0;\n" // negative index
|
" a[-1] = 0;\n" // negative index
|
||||||
|
|
Loading…
Reference in New Issue