source: tests/operators.cfa@ 4be0117

Last change on this file since 4be0117 was 641707d, checked in by Andrew Beach <ajbeach@…>, 8 months ago

More fixing of warnings. Including another error that slipped through to the build and the rest of the 'easy' fixes on tests not in a directory.

  • Property mode set to 100644
File size: 475 bytes
RevLine 
[641707d]1int ?*?( int, int ) {
[e5b96bf]2 return 0;
3}
[62edde5]4
5int ?()( int number1, int number2 ) {
6 return number1 * number2;
7}
8
[641707d]9int ?+?( int, int ) {
[e5b96bf]10 return 0;
11}
[62edde5]12
[641707d]13int ?=?( int &, int ) {
[e5b96bf]14 return 0;
15}
[62edde5]16struct accumulator {
17 int total;
18};
19
[641707d]20char ?()( struct accumulator, char, char ) {
[e5b96bf]21 return 'a';
22}
[62edde5]23
24void f( void ) {
[641707d]25 char a = 0, b = 0;
[62edde5]26 ?()( a, b );
27 a(b);
28 a + b;
29}
30
[641707d]31int main() {
[e5b96bf]32 /* code */
[66812dd]33 printf( "done\n" ); // non-empty .expect file
[e5b96bf]34}
35
[62edde5]36// Local Variables: //
37// tab-width: 4 //
38// End: //
Note: See TracBrowser for help on using the repository browser.