[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / xray-always-instrument-attr.c
blob7c025fbc7791be00dc378305815b2ad29cb6046e
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -std=c11
2 void foo(void) __attribute__((xray_always_instrument));
4 struct __attribute__((xray_always_instrument)) a { int x; }; // expected-warning {{'xray_always_instrument' attribute only applies to functions and Objective-C methods}}
6 void bar(void) __attribute__((xray_always_instrument("not-supported"))); // expected-error {{'xray_always_instrument' attribute takes no arguments}}