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