ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libcpjit/test.C
Revision: 1.6
Committed: Mon Oct 17 18:27:05 2005 UTC (18 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +5 -9 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #include "cpjit.h"
2    
3     #include <iostream>
4    
5     using namespace cpjit;
6     using namespace std;
7    
8     int main (void)
9     {
10 root 1.5 env e ("/tmp/libcpjit");
11 root 1.1
12 root 1.6 funbuild2<U32, U32 *, U64> fb (e);
13     fb << "return a1[0] + a2;";
14 root 1.1
15 root 1.6 fun *f = fb.get ();
16 root 1.5
17 root 1.6 U32 i = 3;
18     cout << f->call<U32, PTR, U64> (&i, 2) << endl;
19 root 1.2
20 root 1.1 return 0;
21     }