diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 11:57:56 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 11:59:21 -0700 |
| commit | 347866f3a70078736f8b4fb36ff458b37231889a (patch) | |
| tree | 68072e8ebbcdf1822642fb356dc1fa1f3879ff6f /test/run_tests.cpp | |
| parent | 6f85b956defe83005da2a5e3daa18272ac3cffef (diff) | |
| download | zig-347866f3a70078736f8b4fb36ff458b37231889a.tar.gz zig-347866f3a70078736f8b4fb36ff458b37231889a.zip | |
add parseh test for multiple fn prototypes
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stdint.h> 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; |
