aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 13:05:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 13:16:25 +0300
commit348b0a82e87b4a3b8f9f83b9f6600ed9960c338a (patch)
tree4d403d4a25d7e5532738d058332725633fd003d8
parentenum_symbols: support symbol mask using --mask (diff)
downloadwinapi-debug-348b0a82e87b4a3b8f9f83b9f6600ed9960c338a.tar.gz
winapi-debug-348b0a82e87b4a3b8f9f83b9f6600ed9960c338a.zip
lab_rat: decrease total symbol count
Diffstat (limited to '')
-rw-r--r--.appveyor.yml3
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/lab_rat.cpp21
3 files changed, 12 insertions, 13 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 53958e2..b33c959 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -37,7 +37,8 @@ after_build:
- appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip"
test_script:
- - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb" --functions --mask "lab_rat!*"'
+ - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb"'
+ - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb" --mask "lab_rat!lab_rat*"'
- '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb" --functions --mask "lab_rat*"'
for:
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0cd4c1a..c910931 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,3 +1,4 @@
+set(CC_STATIC_RUNTIME OFF)
add_executable(lab_rat lab_rat.cpp)
install(TARGETS lab_rat RUNTIME DESTINATION bin)
diff --git a/test/lab_rat.cpp b/test/lab_rat.cpp
index ae93c7b..ed204b6 100644
--- a/test/lab_rat.cpp
+++ b/test/lab_rat.cpp
@@ -1,24 +1,21 @@
-#include <iostream>
-
namespace lab_rat {
-void baz() {
- std::cout << "baz\n";
+int exit_code = 1;
+
+int baz() {
+ return exit_code;
}
-void bar() {
- std::cout << "bar\n";
- baz();
+int bar() {
+ return baz() * 2;
}
-void foo() {
- std::cout << "foo\n";
- bar();
+int foo() {
+ return bar() * 2;
}
} // namespace lab_rat
int main() {
- lab_rat::foo();
- return 0;
+ return lab_rat::foo() * 2;
}