xref: /llvm-project/clang/test/Sema/nocf_check_attr_not_allowed.c (revision 8c5edb59cf487373e545ccb87ffcd24cb7d0d0ec)
1 // RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -fsyntax-only -verify -fcf-protection=branch %s
2 // RUN: %clang_cc1 -triple arm-unknown-linux-gnu -fsyntax-only -verify -fcf-protection=branch %s
3 // RUN: %clang_cc1 -triple arm-unknown-linux-gnu -fsyntax-only -verify %s
4 
5 void __attribute__((nocf_check)) foo(void); // expected-warning-re{{{{((unknown attribute 'nocf_check' ignored)|('nocf_check' attribute ignored; use -fcf-protection to enable the attribute))}}}}
6