File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 3939 run : |
4040 uv run ruff check ./pymhf ./tests
4141 uv run ruff format --check ./pymhf ./tests
42+ - name : Install compiler
43+ id : install_gpp
44+ uses : rlalik/setup-cpp-compiler@master
45+ with :
46+ compiler : g++-14.2.0
47+ - name : Build test binaries
48+ run : g++ ./tests/cpp/app.cpp -Wall -o ./tests/app.exe
4249 - name : Run unit tests
4350 run : uv run pytest ./tests
4451 build :
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+ #include < cstdint>
3+
4+ using namespace std ;
5+
6+ extern " C" __declspec( dllexport ) int64_t multiply (long a, int64_t b) {
7+ return a * b;
8+ }
9+
10+ int main () {
11+ int64_t a;
12+ int64_t b;
13+ cout << " Enter a number: " ;
14+ cin >> a;
15+ cout << " Enter another number: " ;
16+ cin >> b;
17+ cout << " The product is " << multiply (a, b) << endl;
18+ return 0 ;
19+ }
You can’t perform that action at this time.
0 commit comments