brintos

brintos / llvm-project-archived public Read only

0
0
Text · 430 B · 7c025fb Raw
7 lines · c
1// RUN: %clang_cc1 %s -verify -fsyntax-only -std=c112void foo(void) __attribute__((xray_always_instrument));3 4struct __attribute__((xray_always_instrument)) a { int x; }; // expected-warning {{'xray_always_instrument' attribute only applies to functions and Objective-C methods}}5 6void bar(void) __attribute__((xray_always_instrument("not-supported"))); // expected-error {{'xray_always_instrument' attribute takes no arguments}}7