diff options
Diffstat (limited to 'tests/basic/driver.c')
-rw-r--r-- | tests/basic/driver.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/basic/driver.c b/tests/basic/driver.c new file mode 100644 index 0000000..faac915 --- /dev/null +++ b/tests/basic/driver.c @@ -0,0 +1,23 @@ +/* + * file : tests/basic/driver.c + * copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC + * license : LGPLv2.1; see accompanying COPYING file + */ + +#include <stdio.h> + +#include <mysql/mysql.h> + +int +main () +{ + if (mysql_library_init (0, NULL, NULL)) + { + fprintf (stderr, "failed to initialize\n"); + return 1; + } + + printf ("libmariadb version: %s\n", mysql_get_client_info ()); + mysql_library_end (); + return 0; +} |