test(test/shared): add small program for testing shared library
This commit is contained in:
parent
8746484b8f
commit
98bfb8467a
3 changed files with 18 additions and 0 deletions
|
@ -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"))
|
||||
|
|
2
src/tests/shared/CMakeLists.txt
Normal file
2
src/tests/shared/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
add_executable(shared_test shared.cpp)
|
||||
target_link_libraries(shared_test ${EXTRA_LIBS} leanshared)
|
15
src/tests/shared/shared.cpp
Normal file
15
src/tests/shared/shared.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue