diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 11:57:11 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-28 11:57:11 -0700 |
| commit | 6f85b956defe83005da2a5e3daa18272ac3cffef (patch) | |
| tree | 9631b6064febb94031bb028f3523e340d66508bd /test/run_tests.cpp | |
| parent | f1c5d3d3a1ffd479acecd32bbd0496824316c6a6 (diff) | |
| download | zig-6f85b956defe83005da2a5e3daa18272ac3cffef.tar.gz zig-6f85b956defe83005da2a5e3daa18272ac3cffef.zip | |
add restrict -> noalias parseh test
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index b15d3411af..76d21ce88c 100644 --- 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) { |
