aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-14 17:04:35 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-14 17:04:35 -0700
commit0c9afede9e6216aa59cd69dd9ed1ca544e24df30 (patch)
treead59785a0c4c2d7d0a4c53cc48d5bf98a1498352 /test/run_tests.cpp
parent68c4f617edc2afd4f9b201b6b67248d6cb80e69d (diff)
downloadzig-0c9afede9e6216aa59cd69dd9ed1ca544e24df30.tar.gz
zig-0c9afede9e6216aa59cd69dd9ed1ca544e24df30.zip
overflow intrinsics take type as first argument
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 1a7d35d4f9..2f9fedd6b0 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -986,10 +986,10 @@ fn f(c: u8) u8 => {
use "std.zig";
pub fn main(argc: isize, argv: &&u8, env: &&u8) i32 => {
var result: u8;
- if (!@add_with_overflow_u8(250, 100, &result)) {
+ if (!@add_with_overflow(u8, 250, 100, &result)) {
print_str("BAD\n");
}
- if (@add_with_overflow_u8(100, 150, &result)) {
+ if (@add_with_overflow(u8, 100, 150, &result)) {
print_str("BAD\n");
}
if (result != 250) {