diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-31 17:48:19 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-31 17:48:19 -0700 |
| commit | 41b95cc2374010f39b903cb4b90d233d2f7d57c4 (patch) | |
| tree | db26d562e8b0f2621df474b9bd16aec0289caa14 /test/run_tests.cpp | |
| parent | 773cd851fe83d1ee89d7e0ca9e7ad7327d2962c9 (diff) | |
| download | zig-41b95cc2374010f39b903cb4b90d233d2f7d57c4.tar.gz zig-41b95cc2374010f39b903cb4b90d233d2f7d57c4.zip | |
parseh: correct debug for forward decls
also C typedefs emit simply `const Foo = Bar;`
since in C you can implicitly cast from a typedef
child to parent but in zig you can't.
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 3cee4852cd..c873ae1b0d 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -2046,8 +2046,8 @@ typedef void Foo; Foo fun(Foo *a); )SOURCE", 3, "pub type c_void = u8;", - "pub type Foo = c_void;", - "pub extern fn fun(a: ?&Foo);"); + "pub const Foo = c_void;", + "pub extern fn fun(a: ?&c_void);"); } static void print_compiler_invocation(TestCase *test_case) { |
