Fix UB in SIMD tests.

One of the SIMD tests attempted to left shift a value by 42, which
is UB when the left hand side is a 32 bit integer type.

This patch adjusts the test to use the value 4 instead of 42.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@342820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2018-09-22 20:09:02 +00:00
parent 8ee872ed9e
commit 33cc965bf6

View File

@@ -165,7 +165,7 @@ void test_access() {
}
{
auto c = a;
(void)(a[0] + (c[0] <<= a[0]));
(void)(a[0] + (c[0] <<= b[0]));
}
{
auto c = a;