[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / Profile / cxx-missing-bodies.cpp
blob6d34fca482c999e5f395cf7b1037a79865a60bde
1 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm -o - -triple=i386-pc-win32 -fno-rtti -fprofile-instrument=clang | FileCheck %s --check-prefix=GEN
2 //
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.profdata
5 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only -triple=i386-pc-win32 -fno-rtti -fprofile-instrument-use-path=%t.profdata -w
7 // GEN-NOT: __profn{{.*}}??_GA@@UAEPAXI@Z
8 // GEN-NOT: __profn{{.*}}??_DA@@QAEXXZ
10 struct A {
11 virtual ~A();
13 struct B : A {
14 virtual ~B();
17 B::~B() {}
19 void foo() {
20 B c;