diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 14:04:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 14:04:22 -0700 |
| commit | a09b5055585a869bf5af522d19836e3f2c25fc5b (patch) | |
| tree | f0be1c21f41b917b190e85fa14938cd5fe157d39 /test/run_tests.cpp | |
| parent | 2fc4b3629a0fdcca04b5c107a70f0e159bca3e49 (diff) | |
| download | zig-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.cpp | 2 |
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) { |
