Aaron Ballman | 7d2aecb | 2016-07-13 22:32:15 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only -std=c11 |
2 | void foo() __attribute__((xray_always_instrument)); | ||||
3 | |||||
4 | struct __attribute__((xray_always_instrument)) a { int x; }; // expected-warning {{'xray_always_instrument' attribute only applies to functions and methods}} | ||||
5 | |||||
6 | void bar() __attribute__((xray_always_instrument("not-supported"))); // expected-error {{'xray_always_instrument' attribute takes no arguments}} |