1 | // Rank > 0 array |
2 | typedef volatile int* RankNArray[10][100]; |
3 | RankNArray ArrayVar; |
4 | |
5 | typedef int __unaligned *UnalignedTypedef; |
6 | UnalignedTypedef UnVar; |
7 | |
8 | typedef long* __restrict RestrictTypedef; |
9 | RestrictTypedef RestrictVar; |
10 | |
11 | void Func1(const int* a, int const* b, const int ** const c, const int* const* d) { |
12 | return; |
13 | } |
14 | |
15 | void Func2(volatile int* a, int volatile* b) { |
16 | return; |
17 | } |
18 | |
19 | void Func3(int*& a, int& b, const int&c, int&& d) { |
20 | return; |
21 | } |
22 | |
23 | void Func4(int* __unaligned a, __unaligned int* b) { |
24 | return; |
25 | } |
26 | |
27 | void Func5(int a, int* __restrict b, int& __restrict c) { |
28 | return; |
29 | } |
30 | |
31 | void Func6(const volatile int* __restrict b) { |
32 | return; |
33 | } |
34 | |
35 | // LValue |
36 | typedef int& IntRef; |
37 | int x = 0; |
38 | IntRef IVar = x; |
39 | |
40 | // RValue |
41 | typedef int&& IIRef; |
42 | IIRef IIVar = int(1); |
43 | |
44 | int main() { |
45 | return 0; |
46 | } |
47 | |