Commit a7fff767 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #6184 put an assert in a simple template test

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54568 c7de825b-a66e-492c-adef-691d508d4ae1
parent a71feb8a
// test explicit generation of a simple template function // test explicit generation of a simple template function
#include <stdio.h> #include <stdio.h>
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
...@@ -14,6 +15,8 @@ int main(int argc, char *argv[]) { ...@@ -14,6 +15,8 @@ int main(int argc, char *argv[]) {
assert(argc == 3); assert(argc == 3);
int a = atoi(argv[1]); int a = atoi(argv[1]);
int b = atoi(argv[2]); int b = atoi(argv[2]);
printf("%d %d %d\n", a, b, my_max<int>(a, b)); int m = my_max<int>(a, b);
printf("%d %d %d\n", a, b, m);
assert(m == (a > b ? a : b));
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment