2014-04-25 15:20:05 +08:00
|
|
|
// Ensure that implicit methods aren't instrumented.
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -x c++ %s -triple %itanium_abi_triple -main-file-name cxx-implicit.cpp -o - -emit-llvm -fprofile-instr-generate | FileCheck %s
|
|
|
|
|
|
|
|
// An implicit constructor is generated for Base. We should not emit counters
|
|
|
|
// for it.
|
2015-12-15 08:33:12 +08:00
|
|
|
// CHECK-NOT: @__profc__ZN4BaseC2Ev =
|
2014-04-25 15:20:05 +08:00
|
|
|
|
|
|
|
struct Base {
|
|
|
|
virtual void foo();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Derived : public Base {
|
|
|
|
Derived();
|
|
|
|
};
|
|
|
|
|
|
|
|
Derived::Derived() {}
|