Skip to content

Commit

Permalink
Add unescaped restrict keyword (#42)
Browse files Browse the repository at this point in the history
* Add unescaped restrict keyword

* restrict test
  • Loading branch information
dgay42 authored and cire831 committed Jun 11, 2018
1 parent aa254e1 commit ee119bf
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nregress/accept
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm -f ok/*.*
mv .output/*.* ok
cvs -q add ok/*.*
git add ok/*.*

10 changes: 10 additions & 0 deletions nregress/misc/restrict/test.nc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void f(int *restrict x, int *restrict y);

module test {
}
implementation {
void entry() __attribute((spontaneous)) {
int a, b;
f(&a, &b);
}
}
Empty file added nregress/ok/misc.restrict.1
Empty file.
Empty file added nregress/ok/misc.restrict.2
Empty file.
1 change: 1 addition & 0 deletions nregress/ok/misc.restrict.exit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions src/c-parse.gperf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ long, TYPESPEC, RID_LONG
offsetof, OFFSETOF, NORID
__builtin_offsetof, OFFSETOF, NORID
register, SCSPEC, RID_REGISTER
restrict, TYPE_QUAL, restrict_qualifier
return, RETURN, NORID
short, TYPESPEC, RID_SHORT
signed, TYPESPEC, RID_SIGNED
Expand Down

0 comments on commit ee119bf

Please sign in to comment.