source: tests/array.cfa @ 2ede686

aaron-thesisarm-ehcleanup-dtorsjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpersistent-indexer
Last change on this file since 2ede686 was 2ede686, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

formatting

  • Property mode set to 100644
File size: 989 bytes
Line 
1//                               -*- Mode: C -*-
2//
3// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
4//
5// The contents of this file are covered under the licence agreement in the
6// file "LICENCE" distributed with Cforall.
7//
8// array.cfa -- test array declarations
9//
10// Author           : Peter A. Buhr
11// Created On       : Tue Feb 19 21:18:06 2019
12// Last Modified By : Peter A. Buhr
13// Last Modified On : Tue Feb 19 21:18:46 2019
14// Update Count     : 1
15//
16
17int a1[];
18//int a2[*];
19//double a4[3.0];
20
21int m1[][3];
22//int m2[*][*];
23int m4[3][3];
24
25typedef int T;
26
27int fred() {
28//      int a1[];
29//      int a2[*];
30        int a4[3];
31        int T[3];
32}
33
34int mary( int T[3],
35                  int p1[const 3],
36                  int p2[static 3],
37                  int p3[static const 3]
38        ) {
39}
40
41int (*tom())[3] {
42}
43
44int (*(jane)())( int T[3],
45                                 int p1[const 3],
46                                 int p2[static 3],
47                                 int p3[static const 3]
48        ) {
49}
50
51int main() {}
52
53// Local Variables: //
54// tab-width: 4 //
55// compile-command: "cfa array.cfa" //
56// End: //
Note: See TracBrowser for help on using the repository browser.