Skip to content

Commit 0766c15

Browse files
committed
Test for issue #141.
1 parent 8519c5e commit 0766c15

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: tests/unit-fail-compilation/paramStorage.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
void fnc(static int a) {
2+
a = 4;
3+
}
4+
int main()
5+
{
6+
fnc(2);
7+
}

Diff for: tests/unit-fail-compilation/paramStorage.ref

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
File: paramStorage.c
2+
Line: 1
3+
Error: CV-TDG5
4+
Description: function parameter appears with storage class other than register.
5+
Type: Constraint violation.
6+
See also: C11 sec. 6.7.6.3:2
7+
Translation failed. Run kcc -d paramStorage.c to see commands run.

0 commit comments

Comments
 (0)