xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/attr-noduplicate.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -verify -fsyntax-only
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc int a __attribute__((noduplicate)); // expected-warning {{'noduplicate' attribute only applies to functions}}
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc void t1() __attribute__((noduplicate));
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc void t2() __attribute__((noduplicate(2))); // expected-error {{'noduplicate' attribute takes no arguments}}
8*0a6a1f1dSLionel Sambuc 
9