diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-14 18:08:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-14 18:08:52 -0700 |
commit | ce07f2aa7735c267785115c23f28321f61c7b250 (patch) | |
tree | 03ea71dbf30887f38dc585b678d6299b5e608661 /tests/runner.py | |
parent | 55013f30bce701468b5dcdd00dd0df3d53c75c33 (diff) |
intentionally do reSign in printing %d
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index f8d281ad..d080694b 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -217,7 +217,7 @@ class RunnerCore(unittest.TestCase): return ret def run_llvm_interpreter(self, args): - return Popen([LLVM_INTERPRETER] + args, stdout=PIPE, stderr=STDOUT).communicate()[0] + return Popen([EXEC_LLVM] + args, stdout=PIPE, stderr=STDOUT).communicate()[0] def build_native(self, filename, compiler='g++'): Popen([compiler, '-O3', filename, '-o', filename+'.native'], stdout=PIPE, stderr=STDOUT).communicate()[0] @@ -429,6 +429,13 @@ if 'benchmark' not in str(sys.argv): const signed char cvals[2] = { -1, -2 }; // compiler can store this is a string, so -1 becomes \FF, and needs re-signing int main() { + { + unsigned char x = 200; + printf("*%d*\\n", x); + unsigned char y = -22; + printf("*%d*\\n", y); + } + int varey = 100; unsigned int MAXEY = -1, MAXEY2 = -77; printf("*%u,%d,%u*\\n", MAXEY, varey >= MAXEY, MAXEY2); // 100 >= -1? not in unsigned! @@ -453,7 +460,7 @@ if 'benchmark' not in str(sys.argv): return 0; } ''' - self.do_test(src, '*4294967295,0,4294967219*\n*-1,1,-1,1*\n*-2,1,-2,1*\n*246,296*\n*1,0*') + self.do_test(src)#, '*4294967295,0,4294967219*\n*-1,1,-1,1*\n*-2,1,-2,1*\n*246,296*\n*1,0*') # Now let's see some code that should just work in USE_TYPED_ARRAYS == 2, but requires # corrections otherwise |