Skip to content

Commit

Permalink
Upstreaming changes to the main repo (2) (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
eukarpov authored Dec 5, 2023
1 parent 0c0d45d commit c6afdc5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ enable_testing()
add_executable(
aarch64-mingw-tests.exe
bigdata-test.cpp
chkstk-test.c
chkstk-test.cpp
iostream-test.cpp
math-test.c
math-test.cpp
Expand Down
13 changes: 13 additions & 0 deletions tests/chkstk-test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
Tests stack probing
*/

void f1(char* data)
{
*data = 0;
}

void chkstk_test() {
char test[300000];
f1(test);
}
10 changes: 10 additions & 0 deletions tests/chkstk-test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <gtest/gtest.h>

extern "C" void chkstk_test();

TEST(Aarch64MinGW, CHKSTKTest)
{
chkstk_test();
}


0 comments on commit c6afdc5

Please sign in to comment.