brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 06a93f4 Raw
11 lines · cpp
1// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c++11 -x c++2void foo [[clang::xray_always_instrument]] ();3 4struct [[clang::xray_always_instrument]] a { int x; }; // expected-warning {{'clang::xray_always_instrument' attribute only applies to functions and Objective-C methods}}5 6class b {7 void c [[clang::xray_always_instrument]] ();8};9 10void baz [[clang::xray_always_instrument("not-supported")]] (); // expected-error {{'clang::xray_always_instrument' attribute takes no arguments}}11