2
0

cxx-implicit.cpp 455 B

1234567891011121314151617
  1. // Ensure that implicit methods aren't instrumented.
  2. // RUN: %clang_cc1 -x c++ %s -triple %itanium_abi_triple -main-file-name cxx-implicit.cpp -o - -emit-llvm -fprofile-instr-generate | FileCheck %s
  3. // An implicit constructor is generated for Base. We should not emit counters
  4. // for it.
  5. // CHECK-NOT: @__llvm_profile_counters__ZN4BaseC2Ev =
  6. struct Base {
  7. virtual void foo();
  8. };
  9. struct Derived : public Base {
  10. Derived();
  11. };
  12. Derived::Derived() {}