test(test/shared): add small program for testing shared library

This commit is contained in:
Leonardo de Moura 2015-08-13 11:48:54 -07:00
parent 8746484b8f
commit 98bfb8467a
3 changed files with 18 additions and 0 deletions

View file

@ -367,6 +367,7 @@ add_subdirectory(tests/library)
add_subdirectory(tests/library/blast)
add_subdirectory(tests/frontends/lean)
add_subdirectory(tests/shell)
add_subdirectory(tests/shared)
# Include style check
if (NOT(${CMAKE_SYSTEM_NAME} MATCHES "Windows"))

View file

@ -0,0 +1,2 @@
add_executable(shared_test shared.cpp)
target_link_libraries(shared_test ${EXTRA_LIBS} leanshared)

View file

@ -0,0 +1,15 @@
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/environment.h"
#include "init/init.h"
int main() {
lean::initializer init;
lean::environment env;
std::cout << "Lean (empty) environment was successfully created\n";
return 0;
}