blob: 79840ad938566d7593c0d4391a0ba0bc57024dc0 [file] [log] [blame]
Stephen Hines6bcf27b2014-05-29 04:14:42 -07001// 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: @__llvm_profile_counters__ZN4BaseC2Ev =
8
9struct Base {
10 virtual void foo();
11};
12
13struct Derived : public Base {
14 Derived();
15};
16
17Derived::Derived() {}