aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-25 19:46:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-25 19:46:48 -0700
commit4d6a04143f094293e1d4c969a56020b2a33c6ad8 (patch)
treefc2e0e2f4a6d73543309c5b57f3e88b3980cc2f5
parentd5299a3bbf2a9fb71b9ffae102d5acd273ae28c8 (diff)
improve test_llvmswitch
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index ae91348f..72eb90ef 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4071,7 +4071,7 @@ def process(filename):
int main( int argc, const char *argv[] ) {
unsigned int x = 0xfffffff1;
- x >>= 0; // force it to be unsigned for purpose of checking our switch comparison in signed/unsigned
+ x >>= (argc-1); // force it to be unsigned for purpose of checking our switch comparison in signed/unsigned
printf("*%d,%d,%d,%d,%d,%d*\\n", switcher('a'), switcher('b'), switcher('c'), switcher(x), switcher(-15), switcher('e'));
return 0;
}