[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / attr-noduplicate.c
blob5e0c254047d3e1766d63cfd7815fd7c21aa4783f
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
3 int a __attribute__((noduplicate)); // expected-warning {{'noduplicate' attribute only applies to functions}}
5 void t1(void) __attribute__((noduplicate));
7 void t2(void) __attribute__((noduplicate(2))); // expected-error {{'noduplicate' attribute takes no arguments}}