source: tests/KRfunctions.cfa @ fcd65ca

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since fcd65ca was dc8511c, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

first attempt at updating suffixes for test programs

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[3a5131ed]1//
2// Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
[dc8511c]7// KRfunctions.cfa --
[3a5131ed]8//
9// Author           : Peter A. Buhr
10// Created On       : Thu Feb 16 15:23:17 2017
11// Last Modified By : Peter A. Buhr
[dc8511c]12// Last Modified On : Tue Nov  6 17:50:34 2018
13// Update Count     : 9
[3a5131ed]14//
15
16f0( a, b, c ) const int * b; {}
17f1( a, b, c ) int b __attribute__ (( unused )), * a, c[]; {}
18(f2)( a, b, c ) int a, * b, c[]; {}
19
20struct S { int i; };
21int f3( a, b, c ) struct S a; struct S b; int c[]; { struct S s;}
22int (f4)( a, b, c ) int a, * b, c[]; {}
23int (f5( a, b, c )) int a, * b, c[]; {}
24
25int (* f6( a, b, c ))(int) int a, * b, c[]; {}
26int (* f7( a, b, c ))(int a, int b) int a, * b, c[]; {}
27int * f8( a, b, c ) int a, * b, c[]; {}
28int * const f9( a, b, c ) int b, * a, c[]; {}
29
30int (* (* f10( a, b, c, y ))( int x, int y ) ) int a, * b, c[]; double y; {
31    int *x( int, int );
32    return x;
33}
34
35int (* f11( a, b, c ))[] int a, * b, c[]; {}
36int (* f12( a, b, c ))[][10] int a, * b, c[]; {}
37int ((* f13( a, b, c ))[])[10] int a, * b, c[]; {}
38int (((* f14( a, b, c ))[])[10]) int a, * b, c[]; {}
[4cc585b]39f15( a, b, c ) {}
[3a5131ed]40
41const fred() {
42    int *(*x)( int, int );
43    int a, b;
44    x = f10( 3, &a, &b, 3.5 );
45    const f1( a, b, c ) int a, * b, c[]; {}
46    const f2( int a, int b, int c ) {}
47}
48
49// Local Variables: //
50// tab-width: 4 //
[dc8511c]51// compile-command: "cfa KRfunctions.cfa" //
[3a5131ed]52// End: //
Note: See TracBrowser for help on using the repository browser.