| Last change
 on this file since 2806 was             678, checked in by bird, 22 years ago | 
        
          | 
Fixed testcase.
 | 
        
          | 
              
Property                 cvs2svn:cvs-rev
 set to                 1.2
Property                 svn:eol-style
 set to                 native
Property                 svn:executable
 set to                 *
Property                 svn:keywords
 set to                 Author Date Id Revision | 
        
          | File size:
            664 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: tst2asmc.c 678 2003-09-09 19:21:51Z bird $ | 
|---|
| 2 | * | 
|---|
| 3 | * Optlink testcase no. 2. | 
|---|
| 4 | * C source of the ASM file. | 
|---|
| 5 | * | 
|---|
| 6 | * InnoTek Systemberatung GmbH confidential | 
|---|
| 7 | * | 
|---|
| 8 | * Copyright (c) 2003 InnoTek Systemberatung GmbH | 
|---|
| 9 | * Author: knut st. osmundsen <bird-srcspam@anduin.net> | 
|---|
| 10 | * | 
|---|
| 11 | * All Rights Reserved | 
|---|
| 12 | * | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | struct sss | 
|---|
| 16 | { | 
|---|
| 17 | int a; | 
|---|
| 18 | int b; | 
|---|
| 19 | }; | 
|---|
| 20 |  | 
|---|
| 21 | int _Optlink asmfoo(int i1, struct sss s1, void *pv, float rf1, struct sss s2) | 
|---|
| 22 | { | 
|---|
| 23 | if (i1 != 1) | 
|---|
| 24 | return 1; | 
|---|
| 25 | if (s1.a != 2) | 
|---|
| 26 | return 2; | 
|---|
| 27 | if (s1.b != 3) | 
|---|
| 28 | return 3; | 
|---|
| 29 | if (pv != (void*)4) | 
|---|
| 30 | return 4; | 
|---|
| 31 | if (rf1 != (float)1.5) | 
|---|
| 32 | return 5; | 
|---|
| 33 | if (s2.a != 6) | 
|---|
| 34 | return 6; | 
|---|
| 35 | if (s2.b != 7) | 
|---|
| 36 | return 7; | 
|---|
| 37 | return 0; | 
|---|
| 38 | } | 
|---|
| 39 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.