Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / xray-always-instrument-attr.cpp
blobd6a33955cd74639611a5cbf1358adf9a3357f176
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -std=c++11 -x c++
2 void foo [[clang::xray_always_instrument]] ();
4 struct [[clang::xray_always_instrument]] a { int x; }; // expected-warning {{'xray_always_instrument' attribute only applies to functions and Objective-C methods}}
6 class b {
7 void c [[clang::xray_always_instrument]] ();
8 };
10 void baz [[clang::xray_always_instrument("not-supported")]] (); // expected-error {{'xray_always_instrument' attribute takes no arguments}}