File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ namespace
76
76
77
77
CHECK_EQUAL (compare.is_lock_free (), test.is_lock_free ());
78
78
79
- #if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
79
+ #if ETL_NOT_USING_STL && ( defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG) )
80
80
CHECK_TRUE (etl::atomic<int >::is_always_lock_free);
81
81
CHECK_TRUE (test.is_always_lock_free );
82
82
#endif
@@ -90,20 +90,21 @@ namespace
90
90
91
91
CHECK_EQUAL (compare.is_lock_free (), test.is_lock_free ());
92
92
93
- #if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
93
+ #if ETL_NOT_USING_STL && ( defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG) )
94
94
CHECK_TRUE (etl::atomic<int *>::is_always_lock_free);
95
95
CHECK_TRUE (test.is_always_lock_free );
96
96
#endif
97
97
}
98
98
99
- #if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
99
+ #if ETL_NOT_USING_STL && ( defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG) )
100
100
// *************************************************************************
101
101
TEST (test_atomic_is_always_lock_free)
102
102
{
103
103
struct S
104
104
{
105
105
int a;
106
106
int b;
107
+ int c;
107
108
};
108
109
109
110
CHECK_TRUE (etl::atomic<int >::is_always_lock_free);
You can’t perform that action at this time.
0 commit comments