diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-10-31 10:44:06 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-10-31 10:44:06 -0400 |
commit | 0cf2a05f3e94a8d610b85e4e8e9248c77a445291 (patch) | |
tree | 86b0530299261ce6056e7af578dfe4879eae5938 | |
parent | 9df2f5c9237579bf1221b784ae87ed789237fb1c (diff) |
bug #365 - Add test for non-usage of B0
-rw-r--r-- | test/main.h | 4 | ||||
-rw-r--r-- | test/product_selfadjoint.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h index d9cc95614..c4ef52838 100644 --- a/test/main.h +++ b/test/main.h @@ -40,6 +40,10 @@ #define min(A,B) please_protect_your_min_with_parentheses #define max(A,B) please_protect_your_max_with_parentheses +#define FORBIDDEN_IDENTIFIER (this_identifier_is_forbidden_to_avoid_clashes) this_identifier_is_forbidden_to_avoid_clashes +// B0 is defined in POSIX header termios.h +#define B0 FORBIDDEN_IDENTIFIER + // the following file is automatically generated by cmake #include "split_test_helper.h" diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp index 91ac7a9c1..6c1d83bf2 100644 --- a/test/product_selfadjoint.cpp +++ b/test/product_selfadjoint.cpp @@ -92,4 +92,5 @@ void test_product_selfadjoint() s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE); CALL_SUBTEST_7( product_selfadjoint(Matrix<float,Dynamic,Dynamic,RowMajor>(s,s)) ); } + EIGEN_UNUSED_VARIABLE(s) } |