mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-03 07:36:04 +02:00
Disable UB sanitizer in signed shift test
This commit is contained in:
committed by
Anonymous Maarten
parent
f7661ff016
commit
b77fdcc638
@@ -208,6 +208,9 @@ static int TST_uallrem(void *a, void *b, int arg, void *result, void *expected)
|
||||
return (*(unsigned long long *)result) == (*(unsigned long long *)expected);
|
||||
}
|
||||
|
||||
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__ICC)
|
||||
static int TST_allshl(void *a, void *b, int arg, void *result, void *expected) __attribute__ ((no_sanitize("undefined")));
|
||||
#endif
|
||||
static int TST_allshl(void *a, void *b, int arg, void *result, void *expected)
|
||||
{
|
||||
(*(long long *)result) = (*(long long *)a) << arg;
|
||||
|
||||
Reference in New Issue
Block a user