ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since 40c81e5 was 66812dd, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago |
convert tests to always print output (no empty .expect files)
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2ede686] | 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
|
---|
[66812dd] | 13 | // Last Modified On : Sun Sep 27 09:05:40 2020
|
---|
| 14 | // Update Count : 4
|
---|
[2ede686] | 15 | //
|
---|
| 16 |
|
---|
[66812dd] | 17 | int a1[0];
|
---|
[55ba7339] | 18 | //int a2[*];
|
---|
| 19 | //double a4[3.0];
|
---|
[62edde5] | 20 |
|
---|
[66812dd] | 21 | int m1[0][3];
|
---|
[55ba7339] | 22 | //int m2[*][*];
|
---|
[62edde5] | 23 | int m4[3][3];
|
---|
| 24 |
|
---|
| 25 | typedef int T;
|
---|
| 26 |
|
---|
| 27 | int fred() {
|
---|
[55ba7339] | 28 | // int a1[];
|
---|
| 29 | // int a2[*];
|
---|
[62edde5] | 30 | int a4[3];
|
---|
| 31 | int T[3];
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | int mary( int T[3],
|
---|
| 35 | int p1[const 3],
|
---|
| 36 | int p2[static 3],
|
---|
| 37 | int p3[static const 3]
|
---|
| 38 | ) {
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | int (*tom())[3] {
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | int (*(jane)())( int T[3],
|
---|
| 45 | int p1[const 3],
|
---|
| 46 | int p2[static 3],
|
---|
| 47 | int p3[static const 3]
|
---|
| 48 | ) {
|
---|
| 49 | }
|
---|
| 50 |
|
---|
[66812dd] | 51 | int main() {
|
---|
| 52 | #pragma message( "Compiled" ) // force non-empty .expect file
|
---|
| 53 | }
|
---|
[2ede686] | 54 |
|
---|
| 55 | // Local Variables: //
|
---|
| 56 | // tab-width: 4 //
|
---|
| 57 | // compile-command: "cfa array.cfa" //
|
---|
| 58 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.