diff options
Diffstat (limited to 'test/Sema/nocf_check_attr_not_allowed.c')
| -rw-r--r-- | test/Sema/nocf_check_attr_not_allowed.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/nocf_check_attr_not_allowed.c b/test/Sema/nocf_check_attr_not_allowed.c new file mode 100644 index 000000000000..2ba71d4aa4c7 --- /dev/null +++ b/test/Sema/nocf_check_attr_not_allowed.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -fsyntax-only -verify -fcf-protection=branch %s +// RUN: %clang_cc1 -triple arm-unknown-linux-gnu -fsyntax-only -verify -fcf-protection=branch %s +// RUN: %clang_cc1 -triple arm-unknown-linux-gnu -fsyntax-only -verify %s + +void __attribute__((nocf_check)) foo(); // expected-warning-re{{{{((unknown attribute 'nocf_check' ignored)|('nocf_check' attribute ignored; use -fcf-protection to enable the attribute))}}}} |
