Skip to content

Commit ee119bf

Browse files
dgay42cire831
authored andcommitted
Add unescaped restrict keyword (#42)
* Add unescaped restrict keyword * restrict test
1 parent aa254e1 commit ee119bf

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

nregress/accept

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
rm -f ok/*.*
22
mv .output/*.* ok
3-
cvs -q add ok/*.*
3+
git add ok/*.*
44

nregress/misc/restrict/test.nc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
void f(int *restrict x, int *restrict y);
2+
3+
module test {
4+
}
5+
implementation {
6+
void entry() __attribute((spontaneous)) {
7+
int a, b;
8+
f(&a, &b);
9+
}
10+
}

nregress/ok/misc.restrict.1

Whitespace-only changes.

nregress/ok/misc.restrict.2

Whitespace-only changes.

nregress/ok/misc.restrict.exit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0

src/c-parse.gperf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ long, TYPESPEC, RID_LONG
7373
offsetof, OFFSETOF, NORID
7474
__builtin_offsetof, OFFSETOF, NORID
7575
register, SCSPEC, RID_REGISTER
76+
restrict, TYPE_QUAL, restrict_qualifier
7677
return, RETURN, NORID
7778
short, TYPESPEC, RID_SHORT
7879
signed, TYPESPEC, RID_SIGNED

0 commit comments

Comments
 (0)