authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-28 11:57:11-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-28 11:57:11-07:00
log6f85b956defe83005da2a5e3daa18272ac3cffef
tree9631b6064febb94031bb028f3523e340d66508bd
parentf1c5d3d3a1ffd479acecd32bbd0496824316c6a6

add restrict -> noalias parseh test


1 files changed, 5 insertions(+), 0 deletions(-)

test/run_tests.cpp+5
...@@ -1822,6 +1822,11 @@ pub const FooA = enum_Foo.A;...@@ -1822,6 +1822,11 @@ pub const FooA = enum_Foo.A;
1822pub const FooB = enum_Foo.B;1822pub const FooB = enum_Foo.B;
1823pub const Foo1 = enum_Foo._1;1823pub const Foo1 = enum_Foo._1;
1824pub const Foo = enum_Foo;)OUTPUT");1824pub const Foo = enum_Foo;)OUTPUT");
1825
1826 add_parseh_case("restrict -> noalias", R"SOURCE(
1827void foo(void *restrict bar, void *restrict);
1828 )SOURCE", R"OUTPUT(pub const c_void = u8;
1829pub extern fn foo(noalias bar: &c_void, noalias arg1: &c_void);)OUTPUT");
1825}1830}
18261831
1827static void print_compiler_invocation(TestCase *test_case) {1832static void print_compiler_invocation(TestCase *test_case) {