Searched refs:end_p (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | stdlib_test.cpp | 792 char* end_p; in CheckStrToInt() local 796 ASSERT_EQ(T(0), fn("123", &end_p, -1)); in CheckStrToInt() 801 ASSERT_EQ(T(0), fn("123", &end_p, 1)); in CheckStrToInt() 806 ASSERT_EQ(T(0), fn("123", &end_p, 37)); in CheckStrToInt() 810 ASSERT_EQ(T(-123), fn("-123", &end_p, 10)); in CheckStrToInt() 811 ASSERT_EQ(T(123), fn("+123", &end_p, 10)); in CheckStrToInt() 814 ASSERT_EQ(T(0), fn("0xy", &end_p, 16)); in CheckStrToInt() 815 ASSERT_EQ('x', *end_p); in CheckStrToInt() 818 ASSERT_EQ(T(0xab), fn("0xab", &end_p, 0)); in CheckStrToInt() 819 ASSERT_EQ(T(0xab), fn("0Xab", &end_p, 0)); in CheckStrToInt() [all …]
|