mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 08:15:44 +01:00
add a test which ensures that bit shift right is an arithmetic shift, not logical shift.
This commit is contained in:
8
test/t_arith.h
Normal file
8
test/t_arith.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "test.h"
|
||||
|
||||
int test_sar(void *dat) {
|
||||
(void)dat;
|
||||
return assert_true(-3 >> 5 == -1);
|
||||
}
|
||||
Reference in New Issue
Block a user