blob: b52369010287a9230566e98a14051366c5d68e1c [file] [log] [blame]
Aaron Ballman7d2aecb2016-07-13 22:32:15 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c11
2void foo() __attribute__((xray_always_instrument));
3
Aaron Ballmanadf66b62017-11-26 20:01:12 +00004struct __attribute__((xray_always_instrument)) a { int x; }; // expected-warning {{'xray_always_instrument' attribute only applies to functions and Objective-C methods}}
Aaron Ballman7d2aecb2016-07-13 22:32:15 +00005
6void bar() __attribute__((xray_always_instrument("not-supported"))); // expected-error {{'xray_always_instrument' attribute takes no arguments}}