Skip to content

Commit af37b2c

Browse files
author
Marc Rasi
committed
fix ASAN in cache test
1 parent 9044d8e commit af37b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/Basic/CacheTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ TEST(Cache, sameKeyValue) {
153153
}
154154

155155
TEST(Cache, sameKeyValueDestroysKey) {
156-
swift::sys::Cache<KeyCounter, Counter> cache(__func__);
157156
KeyCounter k1, k2;
158157
Counter c;
158+
swift::sys::Cache<KeyCounter, Counter> cache(__func__);
159159
cache.set(k1, c);
160160
cache.set(k2, c);
161161
EXPECT_EQ(1, k1.enter);

0 commit comments

Comments
 (0)