mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Disable UB sanitizer in signed shift test
This commit is contained in:
parent
f7661ff016
commit
b77fdcc638
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue