Commit 03732860be

Andrew Kelley <superjoe30@gmail.com>
2017-11-14 04:33:41
add test case for previous commit
1 parent df07361
Changed files (1)
test/parsec.zig
@@ -619,6 +619,17 @@ pub fn addCases(cases: &tests.ParseCContext) {
         \\    };
         \\}
     );
+
+    cases.addC("duplicate typedef",
+        \\typedef long foo;
+        \\typedef int bar;
+        \\typedef long foo;
+        \\typedef int baz;
+    ,
+        \\pub const foo = c_long;
+        \\pub const bar = c_int;
+        \\pub const baz = c_int;
+    );
 }