mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
24c2e857ab
Modified test1 to test new functions and some of the older ones. Addresses #197 git-svn-id: file:///svn/tokudb@1284 c7de825b-a66e-492c-adef-691d508d4ae1
24 lines
541 B
C++
24 lines
541 B
C++
#include <db_cxx.h>
|
|
|
|
|
|
#include <iostream>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
u_int32_t size = 3;
|
|
u_int32_t flags = 5;
|
|
u_int32_t ulen = 7;
|
|
void* data = &size;
|
|
Dbt dbt;
|
|
|
|
dbt.set_size(size);
|
|
dbt.set_flags(flags);
|
|
dbt.set_data(data);
|
|
dbt.set_ulen(ulen);
|
|
assert(dbt.get_size() == size);
|
|
assert(dbt.get_flags() == flags);
|
|
assert(dbt.get_data() == data);
|
|
assert(dbt.get_ulen() == ulen);
|
|
cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl;
|
|
return 0;
|
|
}
|