diff options
author | Marek Polacek <polacek@redhat.com> | 2022-10-11 12:51:40 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2022-10-18 13:40:29 -0400 |
commit | cc694f45087c892e69ebbb177203c708f00b1bc7 (patch) | |
tree | 15fbe6fefbb1d9bf27caccdb8a798152646aad90 /gcc | |
parent | 885b6660c17fb91980b5682514ef54668e544b02 (diff) | |
download | gcc-cc694f45087c892e69ebbb177203c708f00b1bc7.zip gcc-cc694f45087c892e69ebbb177203c708f00b1bc7.tar.gz gcc-cc694f45087c892e69ebbb177203c708f00b1bc7.tar.bz2 |
testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213]
This test fails on non-i?86/x86_64 targets because on those targets
we get
error: '-fcf-protection=full' is not supported for this target
so this patch limits where the test is run.
PR testsuite/107213
gcc/testsuite/ChangeLog:
* c-c++-common/pointer-to-fn1.c: Only run on i?86/x86_64.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/c-c++-common/pointer-to-fn1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/pointer-to-fn1.c b/gcc/testsuite/c-c++-common/pointer-to-fn1.c index 9758854..e2f948d 100644 --- a/gcc/testsuite/c-c++-common/pointer-to-fn1.c +++ b/gcc/testsuite/c-c++-common/pointer-to-fn1.c @@ -1,4 +1,5 @@ /* PR c++/106937 */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-fcf-protection" } */ /* { dg-additional-options "-std=c++11 -fpermissive" { target c++ } } */ /* Test printing a pointer to function with attribute. */ |