aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2015-12-01 14:41:03 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2015-12-01 14:41:03 -0700
commitc6a9ab107bb383759f3627ed828ea2a779844f2b (patch)
tree1bcca15a80247cf083a53a1c51c70a6d3b753064 /test/run_tests.cpp
parentab327344b671bff7f874f24691d7e3f19176167c (diff)
downloadzig-c6a9ab107bb383759f3627ed828ea2a779844f2b.tar.gz
zig-c6a9ab107bb383759f3627ed828ea2a779844f2b.zip
string literals have type *const u8
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 979ad38997..6b6d039f4c 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -99,7 +99,7 @@ static void add_compiling_test_cases(void) {
add_simple_case("hello world with libc", R"SOURCE(
#link("c")
extern {
- fn puts(s: *mut u8) -> i32;
+ fn puts(s: *const u8) -> i32;
fn exit(code: i32) -> unreachable;
}
@@ -112,7 +112,7 @@ static void add_compiling_test_cases(void) {
add_simple_case("function call", R"SOURCE(
#link("c")
extern {
- fn puts(s: *mut u8) -> i32;
+ fn puts(s: *const u8) -> i32;
fn exit(code: i32) -> unreachable;
}
@@ -134,7 +134,7 @@ static void add_compiling_test_cases(void) {
add_simple_case("comments", R"SOURCE(
#link("c")
extern {
- fn puts(s: *mut u8) -> i32;
+ fn puts(s: *const u8) -> i32;
fn exit(code: i32) -> unreachable;
}
@@ -169,7 +169,7 @@ static void add_compiling_test_cases(void) {
add_source_file(tc, "libc.zig", R"SOURCE(
#link("c")
extern {
- pub fn puts(s: *mut u8) -> i32;
+ pub fn puts(s: *const u8) -> i32;
pub fn exit(code: i32) -> unreachable;
}
)SOURCE");