Skip to content

Commit 7f9f661

Browse files
dgay42cire831
authored andcommitted
Add unescaped restrict keyword (#42)
* restrict test * Add unescaped restrict keyword pull #42
1 parent 70949a2 commit 7f9f661

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

nregress/accept

+1-1
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

+10
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0

src/c-parse.gperf

+1
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)