ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcpjit/test.C
Revision: 1.4
Committed: Fri Oct 14 01:29:45 2005 UTC (18 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.3: +1 -2 lines
Log Message:
*** empty log message ***

File Contents

# Content
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 funbuild2<int, PTR, U64> fb (e);
13 fb << "return ((int *)a1)[0] + a2;";
14 fun2<int, PTR, U64> &f = *fb.get ();
15
16 int i = 3;
17 cout << f (&i, 2) << endl;
18
19 return 0;
20 }