diff options
author | Brad King <brad.king@kitware.com> | 2020-10-02 15:32:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-05 12:57:10 (GMT) |
commit | 20f7d51b7b1f26bf21b618927cff043123a6b94f (patch) | |
tree | 0c4536d5b48a0e4933646b8cb10973bfaf643c8e /Tests/FindBLAS/Test | |
parent | d77f8117cb3999469da3891ae91cc9389784681a (diff) | |
download | CMake-20f7d51b7b1f26bf21b618927cff043123a6b94f.zip CMake-20f7d51b7b1f26bf21b618927cff043123a6b94f.tar.gz CMake-20f7d51b7b1f26bf21b618927cff043123a6b94f.tar.bz2 |
Tests: Revise FindBLAS test to avoid cblas_ mangling
Diffstat (limited to 'Tests/FindBLAS/Test')
-rw-r--r-- | Tests/FindBLAS/Test/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Tests/FindBLAS/Test/main.c b/Tests/FindBLAS/Test/main.c index 7360dee..e61b02c 100644 --- a/Tests/FindBLAS/Test/main.c +++ b/Tests/FindBLAS/Test/main.c @@ -2,13 +2,15 @@ #include <string.h> // declare what parts of the blas C-API we need -void cblas_dswap(const int N, double* X, const int incX, double* Y, - const int incY); +void dswap_(int* N, double* X, int* incX, double* Y, int* incY); int main() { double x[4] = { 1, 2, 3, 4 }; double y[4] = { 8, 7, 7, 6 }; - cblas_dswap(4, x, 1, y, 1); + int N = 4; + int incX = 1; + int incY = 1; + dswap_(&N, x, &incX, y, &incY); return 0; } |