aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-28 14:04:22 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-28 14:04:22 -0700
commita09b5055585a869bf5af522d19836e3f2c25fc5b (patch)
treef0be1c21f41b917b190e85fa14938cd5fe157d39 /test/run_tests.cpp
parent2fc4b3629a0fdcca04b5c107a70f0e159bca3e49 (diff)
downloadzig-a09b5055585a869bf5af522d19836e3f2c25fc5b.tar.gz
zig-a09b5055585a869bf5af522d19836e3f2c25fc5b.zip
null pointer optimization for ?&T
this is necessary for the parseh change where all pointers from .h files are maybe pointers.
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 96aa7cc2db..f82a6b63bd 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -1827,7 +1827,7 @@ pub const Foo = enum_Foo;)OUTPUT");
add_parseh_case("restrict -> noalias", R"SOURCE(
void foo(void *restrict bar, void *restrict);
)SOURCE", R"OUTPUT(pub const c_void = u8;
-pub extern fn foo(noalias bar: &c_void, noalias arg1: &c_void);)OUTPUT");
+pub extern fn foo(noalias bar: ?&c_void, noalias arg1: ?&c_void);)OUTPUT");
}
static void print_compiler_invocation(TestCase *test_case) {