From 41b95cc2374010f39b903cb4b90d233d2f7d57c4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 31 Jan 2016 17:48:19 -0700 Subject: 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. --- test/run_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/run_tests.cpp') 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) { -- cgit v1.2.3