Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / xray-log-args-class.cpp
blob10da93f614feaa7b8189ba8412f30203118be07d
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -std=c++11 -x c++
3 class Class {
4 [[clang::xray_always_instrument, clang::xray_log_args(1)]] void Method();
5 [[clang::xray_log_args(-1)]] void Invalid(); // expected-error {{'xray_log_args' attribute parameter 1 is out of bounds}}
6 [[clang::xray_log_args("invalid")]] void InvalidStringArg(); // expected-error {{'xray_log_args'}}
7 };