History

tccgen.c: In parse_btype, handle type qualifiers applied to arrays.

Also add some test cases in tests/tests2/39_typedef.c.

Edmund Grimley Evans committed 10 years ago

Commit f75f89f1 parent 541b3352 files · +41 −14Browse files

Showing the changes to tests (1 of 2 files). Show all

Unified · Split

tests/tests2/39_typedef.c+16−0
@@ -28,4 +28,20 @@ int main() · 27 unmodified lines
28 return 0;28 return 0;
29}29}
30 30
31/* "If the specification of an array type includes any type qualifiers,
32 the element type is so-qualified, not the array type." */
33
34typedef int A[3];
35extern A const ca;
36extern const A ca;
37extern const int ca[3];
38
39typedef A B[1][2];
40extern B const cb;
41extern const B cb;
42extern const int cb[1][2][3];
43
44extern B b;
45extern int b[1][2][3];
46
31/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/47/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t