blob: 8ac22f2a1bcaac0458f7ee64ca955ad07b6e4372 [file] [log] [blame]
Dean Michael Berris1a5b10d2017-11-30 00:04:54 +00001// RUN: %clang_cc1 -fxray-instrument -fxray-always-emit-customevents -x c++ \
2// RUN: -std=c++11 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
3// RUN: | FileCheck %s
4
5// CHECK-LABEL: @_Z15neverInstrumentv
6[[clang::xray_never_instrument]] void neverInstrument() {
7 static constexpr char kPhase[] = "never";
8 __xray_customevent(kPhase, 5);
9 // CHECK: call void @llvm.xray.customevent(i8*{{.*}}, i32 5)
10}