22 lines · cpp
1// RUN: %clang_cc1 %s -std=c++11 -emit-llvm -o - -triple=i386-pc-win32 -fno-rtti -fprofile-instrument=clang | FileCheck %s --check-prefix=GEN2//3// Don't crash when presented profile data for functions without bodies:4// RUN: llvm-profdata merge %S/Inputs/cxx-missing-bodies.proftext -o %t.profdata5// RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only -triple=i386-pc-win32 -fno-rtti -fprofile-instrument-use=clang -fprofile-instrument-use-path=%t.profdata -w6 7// GEN-NOT: __profn{{.*}}??_GA@@UAEPAXI@Z8// GEN-NOT: __profn{{.*}}??_DA@@QAEXXZ9 10struct A {11 virtual ~A();12};13struct B : A {14 virtual ~B();15};16 17B::~B() {}18 19void foo() {20 B c;21}22