commit 6f85b956defe83005da2a5e3daa18272ac3cffef (tree) parent f1c5d3d3a1ffd479acecd32bbd0496824316c6a6 Author: Andrew Kelley <superjoe30@gmail.com> Date: Thu, 28 Jan 2016 11:57:11 -0700 add restrict -> noalias parseh test Diffstat:
| M | test/run_tests.cpp | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/test/run_tests.cpp b/test/run_tests.cpp @@ -1822,6 +1822,11 @@ pub const FooA = enum_Foo.A; pub const FooB = enum_Foo.B; pub const Foo1 = enum_Foo._1; pub const Foo = enum_Foo;)OUTPUT"); + + add_parseh_case("restrict -> noalias", R"SOURCE( +void foo(void *restrict bar, void *restrict); + )SOURCE", R"OUTPUT(pub const c_void = u8; +pub extern fn foo(noalias bar: &c_void, noalias arg1: &c_void);)OUTPUT"); } static void print_compiler_invocation(TestCase *test_case) {