ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libcpjit/test.C
Revision: 1.4
Committed: Fri Oct 14 01:29:45 2005 UTC (20 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.3: +1 -2 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     env e;
11    
12 root 1.3 funbuild2<int, PTR, U64> fb (e);
13 root 1.2 fb << "return ((int *)a1)[0] + a2;";
14 root 1.4 fun2<int, PTR, U64> &f = *fb.get ();
15 root 1.1
16 root 1.2 int i = 3;
17     cout << f (&i, 2) << endl;
18    
19 root 1.1 return 0;
20     }