[RISC-V] Avoid unnecessary extensions when value is already extended
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / taint-modulus-1.c
blobed286fa341cdeb769bc860a8cecdcc0e1c5d000a
1 #define SIZE 16
2 char buf[SIZE];
4 __attribute__ ((tainted_args))
5 char test_sanitized_by_modulus (int val)
7 return buf[val % SIZE]; /* { dg-bogus "use of attacker-controlled value" } */