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) {
1166
1166
ASSERT_TRUE (ctor);
1167
1167
ASSERT_TRUE (dtor);
1168
1168
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 (),
1170
1176
" _ZN1SC1Ev" );
1171
- ASSERT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1177
+ EXPECT_STREQ (m_ast->DeclGetMangledName (dtor_nolabel).GetCString (),
1172
1178
" _ZN1SD1Ev" );
1173
- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1179
+ #endif
1180
+
1181
+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1174
1182
m_ast->DeclGetMangledName (ctor).GetStringRef ())
1175
1183
.data (),
1176
1184
" $__lldb_func:0x0:0x0:S" );
1177
- ASSERT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1185
+ EXPECT_STREQ (llvm::GlobalValue::dropLLVMManglingEscape (
1178
1186
m_ast->DeclGetMangledName (dtor).GetStringRef ())
1179
1187
.data (),
1180
1188
" $__lldb_func:0x0:0x0:~S" );
You can’t perform that action at this time.
0 commit comments