diff options
Diffstat (limited to 'test/Profile/cxx-virtual-destructor-calls.cpp')
-rw-r--r-- | test/Profile/cxx-virtual-destructor-calls.cpp | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/test/Profile/cxx-virtual-destructor-calls.cpp b/test/Profile/cxx-virtual-destructor-calls.cpp index 35975c28533c..4affd2618e21 100644 --- a/test/Profile/cxx-virtual-destructor-calls.cpp +++ b/test/Profile/cxx-virtual-destructor-calls.cpp @@ -13,18 +13,25 @@ struct B : A { virtual ~B(); }; -// Complete dtor -// CHECK: @__llvm_profile_name__ZN1BD1Ev = private constant [9 x i8] c"_ZN1BD1Ev" +// Base dtor +// CHECK: @__profn__ZN1BD2Ev = private constant [9 x i8] c"_ZN1BD2Ev" -// Deleting dtor -// CHECK: @__llvm_profile_name__ZN1BD0Ev = private constant [9 x i8] c"_ZN1BD0Ev" +// Complete dtor must not be instrumented +// CHECK-NOT: @__profn__ZN1BD1Ev = private constant [9 x i8] c"_ZN1BD1Ev" -// Complete dtor counters and profile data -// CHECK: @__llvm_profile_counters__ZN1BD1Ev = private global [1 x i64] zeroinitializer -// CHECK: @__llvm_profile_data__ZN1BD1Ev = +// Deleting dtor must not be instrumented +// CHECK-NOT: @__profn__ZN1BD0Ev = private constant [9 x i8] c"_ZN1BD0Ev" -// Deleting dtor counters and profile data -// CHECK: @__llvm_profile_counters__ZN1BD0Ev = private global [1 x i64] zeroinitializer -// CHECK: @__llvm_profile_data__ZN1BD0Ev = +// Base dtor counters and profile data +// CHECK: @__profc__ZN1BD2Ev = private global [1 x i64] zeroinitializer +// CHECK: @__profd__ZN1BD2Ev = + +// Complete dtor counters and profile data must absent +// CHECK-NOT: @__profc__ZN1BD1Ev = private global [1 x i64] zeroinitializer +// CHECK-NOT: @__profd__ZN1BD1Ev = + +// Deleting dtor counters and profile data must absent +// CHECK-NOT: @__profc__ZN1BD0Ev = private global [1 x i64] zeroinitializer +// CHECK-NOT: @__profd__ZN1BD0Ev = B::~B() { } |