mariadb/storage/tokudb/tests/max_test.cc
Rich Prohaska 8b619cad16 refs #6112 use templates for the vlq functions in the tokudb handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53779 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00

17 lines
360 B
C++

// test explicit generation of a simple template function
#include <stdio.h>
#include <stdlib.h>
template <class T> T my_max(T a, T b) {
return a > b ? a : b;
}
template int my_max(int a, int b);
int main(int argc, char *argv[]) {
int a = atoi(argv[1]);
int b = atoi(argv[2]);
printf("%d %d %d\n", a, b, my_max<int>(a, b));
return 0;
}