File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1164,15 +1164,23 @@ TEST_F(TestTypeSystemClang, AsmLabel_CtorDtor) {
11641164 ASSERT_TRUE (ctor);
11651165 ASSERT_TRUE (dtor);
11661166
1167- ASSERT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
1167+ #ifdef _WIN32
1168+ EXPECT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
1169+ " ??0S@@QEAA@XZ" );
1170+ EXPECT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1171+ " ??1S@@QEAA@XZ" );
1172+ #else
1173+ EXPECT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
11681174 " _ZN1SC1Ev" );
1169- ASSERT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1175+ EXPECT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
11701176 " _ZN1SD1Ev" );
1171- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1177+ #endif
1178+
1179+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
11721180 m_ast->DeclGetMangledName (ctor).GetStringRef ())
11731181 .data (),
11741182 " $__lldb_func:0x0:0x0:S" );
1175- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1183+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
11761184 m_ast->DeclGetMangledName (dtor).GetStringRef ())
11771185 .data (),
11781186 " $__lldb_func:0x0:0x0:~S" );
You can’t perform that action at this time.
0 commit comments