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 @@ -1166,15 +1166,23 @@ TEST_F(TestTypeSystemClang, AsmLabel_CtorDtor) {
11661166 ASSERT_TRUE (ctor);
11671167 ASSERT_TRUE (dtor);
11681168
1169- ASSERT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
1169+ #ifdef _WIN32
1170+ EXPECT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
1171+ " ??0S@@QEAA@XZ" );
1172+ EXPECT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1173+ " ??1S@@QEAA@XZ" );
1174+ #else
1175+ EXPECT_STREQ (m_ast->DeclGetMangledName (ctor_nolabel).GetCString (),
11701176 " _ZN1SC1Ev" );
1171- ASSERT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1177+ EXPECT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
11721178 " _ZN1SD1Ev" );
1173- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1179+ #endif
1180+
1181+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
11741182 m_ast->DeclGetMangledName (ctor).GetStringRef ())
11751183 .data (),
11761184 " $__lldb_func:0x0:0x0:S" );
1177- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1185+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
11781186 m_ast->DeclGetMangledName (dtor).GetStringRef ())
11791187 .data (),
11801188 " $__lldb_func:0x0:0x0:~S" );
You can’t perform that action at this time.
0 commit comments