From 347866f3a70078736f8b4fb36ff458b37231889a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 28 Jan 2016 11:57:56 -0700 Subject: [PATCH] add parseh test for multiple fn prototypes --- test/run_tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 76d21ce88c..96aa7cc2db 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1797,6 +1797,7 @@ static void add_parseh_test_cases(void) { add_parseh_case("simple data types", R"SOURCE( #include int foo(char a, unsigned char b, signed char c); +int foo(char a, unsigned char b, signed char c); // test a duplicate prototype void bar(uint8_t a, uint16_t b, uint32_t c, uint64_t d); void baz(int8_t a, int16_t b, int32_t c, int64_t d); )SOURCE", R"OUTPUT(pub extern fn foo(a: u8, b: u8, c: i8) -> c_int;