mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
Add test for '/', '<<', and '>>' in #if expressions.
These operators have been supported already, but were not covered in existing tests yet. So this test passes already.
This commit is contained in:
parent
bb9315f804
commit
00f1ec421e
1 changed files with 16 additions and 0 deletions
16
tests/053-if-divide-and-shift.c
Normal file
16
tests/053-if-divide-and-shift.c
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#if (15 / 2) != 7
|
||||||
|
failure_1
|
||||||
|
#else
|
||||||
|
success_1
|
||||||
|
#endif
|
||||||
|
#if (1 << 12) == 4096
|
||||||
|
success_2
|
||||||
|
#else
|
||||||
|
failure_2
|
||||||
|
#endif
|
||||||
|
#if (31762 >> 8) != 124
|
||||||
|
failure_3
|
||||||
|
#else
|
||||||
|
success_3
|
||||||
|
#endif
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue