source: trunk/testcase/optlink/tst1.c@ 633

Last change on this file since 633 was 632, checked in by bird, 22 years ago

output result.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/* $Id: tst1.c 632 2003-08-17 18:35:51Z bird $ */
2/** @file
3 *
4 * Optlink testcase no. 1.
5 * Passing stuff in all registers.
6 *
7 * InnoTek Systemberatung GmbH confidential
8 *
9 * Copyright (c) 2003 InnoTek Systemberatung GmbH
10 * Author: knut st. osmundsen <bird-srcspam@anduin.net>
11 *
12 * All Rights Reserved
13 *
14 */
15
16 #include <stdio.h>
17
18/** in asm */
19extern int _Optlink foo (int i1, int i2, int i3, float rf1, float rf2, float rf3, float rf4);
20
21int main()
22{
23 int rc = foo(1, 2, 3, 1.1, 1.2, 1.3, 1.4);
24 switch (rc)
25 {
26 case 0: printf("tst1: success.\n"); break;
27 case 1: printf("tst1: i1 check failed.\n"); break;
28 case 2: printf("tst1: i2 check failed.\n"); break;
29 case 3: printf("tst1: i3 check failed.\n"); break;
30 case 4: printf("tst1: rf1 check failed.\n"); break;
31 case 5: printf("tst1: rf2 check failed.\n"); break;
32 case 6: printf("tst1: rf3 check failed.\n"); break;
33 case 7: printf("tst1: rf4 check failed.\n"); break;
34 default:
35 printf("tst1: failed test %d - internal error\n", rc);
36 break;
37 }
38 return rc;
39}
Note: See TracBrowser for help on using the repository browser.