Skip to content

Commit c867f70

Browse files
committed
fixup! fix more tests
1 parent 46da940 commit c867f70

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

clang/test/CodeGen/block-with-perdefinedexpr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ class Foo {
6767
}
6868
void inside_lambda() {
6969
auto lambda = []() {
70-
// CHECK-DAG: @__PRETTY_FUNCTION__.___ZZN12foonamespace3Foo13inside_lambdaEvENKUlvE_clEv_block_invoke = private unnamed_addr constant [92 x i8] c"auto foonamespace::Foo::inside_lambda()::(anonymous class)::operator()() const_block_invoke\00", align 1
70+
// CHECK-DAG: @__PRETTY_FUNCTION__.___ZZN12foonamespace3Foo13inside_lambdaEvENKUlvE_clEv_block_invoke = private unnamed_addr constant [83 x i8] c"auto foonamespace::Foo::inside_lambda()::(lambda)::operator()() const_block_invoke\00", align 1
7171
const char * (^block1)() = ^() {
7272
return __PRETTY_FUNCTION__;
7373
};
74-
// CHECK-DAG: @__PRETTY_FUNCTION__.___ZZN12foonamespace3Foo13inside_lambdaEvENKUlvE_clEv_block_invoke_2 = private unnamed_addr constant [94 x i8] c"auto foonamespace::Foo::inside_lambda()::(anonymous class)::operator()() const_block_invoke_2\00", align 1
74+
// CHECK-DAG: @__PRETTY_FUNCTION__.___ZZN12foonamespace3Foo13inside_lambdaEvENKUlvE_clEv_block_invoke_2 = private unnamed_addr constant [85 x i8] c"auto foonamespace::Foo::inside_lambda()::(lambda)::operator()() const_block_invoke_2\00", align 1
7575
const char * (^block2)() = ^() {
7676
return __PRETTY_FUNCTION__;
7777
};

clang/test/CodeGenCXX/predefined-expr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// CHECK-DAG: private unnamed_addr constant [103 x i8] c"static void ClassWithTemplateTemplateParam<char>::staticMember() [T = char, Param = NS::ClassTemplate]\00"
1111
// CHECK-DAG: private unnamed_addr constant [106 x i8] c"void OuterClass<int *>::MiddleClass::InnerClass<float>::memberFunction(T, U) const [T = int *, U = float]\00"
1212
// CHECK-DAG: private unnamed_addr constant [51 x i8] c"void functionTemplateWithCapturedStmt(T) [T = int]\00"
13-
// CHECK-DAG: private unnamed_addr constant [76 x i8] c"auto functionTemplateWithLambda(int)::(lambda)::operator()() const\00"
13+
// CHECK-DAG: private unnamed_addr constant [67 x i8] c"auto functionTemplateWithLambda(int)::(lambda)::operator()() const\00"
1414
// CHECK-DAG: private unnamed_addr constant [65 x i8] c"void functionTemplateWithUnnamedTemplateParameter(T) [T = float]\00"
1515

1616
// CHECK-DAG: private unnamed_addr constant [60 x i8] c"void functionTemplateExplicitSpecialization(T) [T = double]\00"
@@ -28,13 +28,13 @@
2828
// CHECK-DAG: private unnamed_addr constant [46 x i8] c"void NS::Base::functionTemplate1(T) [T = int]\00"
2929

3030
// CHECK-DAG: private unnamed_addr constant [23 x i8] c"anonymousUnionFunction\00"
31-
// CHECK-DAG: private unnamed_addr constant [83 x i8] c"void NS::ContainerForAnonymousRecords::(anonymous union)::anonymousUnionFunction()\00"
31+
// CHECK-DAG: private unnamed_addr constant [81 x i8] c"void NS::ContainerForAnonymousRecords::(unnamed union)::anonymousUnionFunction()\00"
3232

3333
// CHECK-DAG: private unnamed_addr constant [24 x i8] c"anonymousStructFunction\00"
34-
// CHECK-DAG: private unnamed_addr constant [85 x i8] c"void NS::ContainerForAnonymousRecords::(anonymous struct)::anonymousStructFunction()\00"
34+
// CHECK-DAG: private unnamed_addr constant [83 x i8] c"void NS::ContainerForAnonymousRecords::(unnamed struct)::anonymousStructFunction()\00"
3535

3636
// CHECK-DAG: private unnamed_addr constant [23 x i8] c"anonymousClassFunction\00"
37-
// CHECK-DAG: private unnamed_addr constant [83 x i8] c"void NS::ContainerForAnonymousRecords::(anonymous class)::anonymousClassFunction()\00"
37+
// CHECK-DAG: private unnamed_addr constant [81 x i8] c"void NS::ContainerForAnonymousRecords::(unnamed class)::anonymousClassFunction()\00"
3838

3939
// CHECK-DAG: private unnamed_addr constant [12 x i8] c"~Destructor\00"
4040
// CHECK-DAG: private unnamed_addr constant [30 x i8] c"NS::Destructor::~Destructor()\00"

clang/test/SemaCXX/predefined-expr.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ int baz() {
2626
[]() {
2727
static_assert(sizeof(__func__) == 11, "operator()");
2828
static_assert(sizeof(__FUNCTION__) == 11, "operator()");
29-
static_assert(sizeof(__PRETTY_FUNCTION__) == 50,
30-
"auto baz()::<anonymous class>::operator()() const");
29+
static_assert(sizeof(__PRETTY_FUNCTION__) == 41,
30+
"auto baz()::<lambda>::operator()() const");
3131
return 0;
3232
}
3333
();
@@ -56,8 +56,8 @@ int main() {
5656
[]() {
5757
static_assert(sizeof(__func__) == 11, "operator()");
5858
static_assert(sizeof(__FUNCTION__) == 11, "operator()");
59-
static_assert(sizeof(__PRETTY_FUNCTION__) == 51,
60-
"auto main()::<anonymous class>::operator()() const");
59+
static_assert(sizeof(__PRETTY_FUNCTION__) == 42,
60+
"auto main()::<lambda>::operator()() const");
6161
return 0;
6262
}
6363
();
@@ -87,8 +87,8 @@ int main() {
8787
{
8888
static_assert(sizeof(__func__) == 11, "operator()");
8989
static_assert(sizeof(__FUNCTION__) == 11, "operator()");
90-
static_assert(sizeof(__PRETTY_FUNCTION__) == 51,
91-
"auto main()::<anonymous class>::operator()() const");
90+
static_assert(sizeof(__PRETTY_FUNCTION__) == 42,
91+
"auto main()::<lambda>::operator()() const");
9292
}
9393
}
9494
();

0 commit comments

Comments
 (0)