File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
std/input.output/filesystems/class.path/path.member Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 12
12
// These tests require locale for non-char paths
13
13
// UNSUPPORTED: no-localization
14
14
15
+ // In MinGW mode, with optimizations enabled with a DLL, the number of counted
16
+ // allocations mismatches, as some ctor/dtor calls are generated in the
17
+ // calling code, and some are called from the DLL.
18
+ // ADDITIONAL_COMPILE_FLAGS: -DALLOW_MISMATCHING_LIBRRARY_INTERNAL_ALLOCATIONS
19
+
15
20
// <filesystem>
16
21
17
22
// class path
Original file line number Diff line number Diff line change 12
12
// These tests require locale for non-char paths
13
13
// UNSUPPORTED: no-localization
14
14
15
+ // In MinGW mode, with optimizations enabled with a DLL, the number of counted
16
+ // allocations mismatches, as some ctor/dtor calls are generated in the
17
+ // calling code, and some are called from the DLL.
18
+ // ADDITIONAL_COMPILE_FLAGS: -DALLOW_MISMATCHING_LIBRRARY_INTERNAL_ALLOCATIONS
19
+
15
20
// <filesystem>
16
21
17
22
// class path
Original file line number Diff line number Diff line change @@ -626,7 +626,11 @@ struct RequireAllocationGuard {
626
626
void requireExactly (std::size_t N) { m_req_alloc = N; m_exactly = true ; }
627
627
628
628
~RequireAllocationGuard () {
629
+ #ifdef ALLOW_MISMATCHING_LIBRRARY_INTERNAL_ALLOCATIONS
629
630
ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS (globalMemCounter.checkOutstandingNewEq (static_cast <int >(m_outstanding_new_on_init)));
631
+ #else
632
+ assert (globalMemCounter.checkOutstandingNewEq (static_cast <int >(m_outstanding_new_on_init)));
633
+ #endif
630
634
std::size_t Expect = m_new_count_on_init + m_req_alloc;
631
635
assert (globalMemCounter.checkNewCalledEq (static_cast <int >(Expect)) ||
632
636
(!m_exactly && globalMemCounter.checkNewCalledGreaterThan (static_cast <int >(Expect))));
You can’t perform that action at this time.
0 commit comments