Skip to content

Commit 9cd1ce1

Browse files
committed
Clean test
1 parent 0b713fb commit 9cd1ce1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/VariantTest.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,14 @@ static int s_VariantWithNoDefaultConstructibleUnderlyingType(struct aws_allocato
308308

309309
using NoDefaultConstructibleVariant = Aws::Crt::Variant<NoDefaultConstructibleTestType>;
310310

311-
/* Regression test.
312-
* The __declspec(dllexport) directive exports class member function on Windows platform. We enable it when
313-
* building shared libraries. In the past, this directive caused msvc to generate special copy members for classes
314-
* containing Crt::Variant with copy-only underlying types, which led to compile-time errors. */
315311
struct AWS_VARIANTTEST_WINDOWS_API NoDefaultConstructibleVariantTestResult
316312
{
317313
NoDefaultConstructibleVariant m_result;
318314
};
319315

320316
NoDefaultConstructibleTestType testType(1);
321317
NoDefaultConstructibleVariant variant(testType);
318+
NoDefaultConstructibleVariantTestResult testResult{variant};
322319

323320
return AWS_OP_SUCCESS;
324321
}

0 commit comments

Comments
 (0)