etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / Profile / cxx-implicit.cpp
blob79840ad938566d7593c0d4391a0ba0bc57024dc0
1 // Ensure that implicit methods aren't instrumented.
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
5 // An implicit constructor is generated for Base. We should not emit counters
6 // for it.
7 // CHECK-NOT: @__llvm_profile_counters__ZN4BaseC2Ev =
9 struct Base {
10 virtual void foo();
13 struct Derived : public Base {
14 Derived();
17 Derived::Derived() {}