Fix test for architectures where char is unsigned

This commit is contained in:
Raphael Geissert 2011-02-12 02:42:31 -06:00
parent 63ade3e4f6
commit d8119cd57a
1 changed files with 2 additions and 2 deletions

View File

@ -887,8 +887,8 @@ private:
" a[-1] = 0;\n" // negative index
" a[256] = 0;\n" // 256 > CHAR_MAX
"}\n");
ASSERT_EQUALS("[test.cpp:3]: (error) Array 'a[256]' index -1 out of bounds\n"
"[test.cpp:4]: (error) Array 'a[256]' index 256 out of bounds\n", errout.str());
ASSERT_EQUALS("[test.cpp:4]: (error) Array 'a[256]' index 256 out of bounds\n"
"[test.cpp:3]: (error) Array 'a[256]' index -1 out of bounds\n", errout.str());
}
check("void f(signed char n) {\n"