From cc2593977ba32d6c37a8f8f94c2479fc6a560e85 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 14 Feb 2019 21:05:48 +0000 Subject: [PATCH] pcs_attribute.c: New test. 2018-02-14 Steve Ellcey * gcc.target/aarch64/pcs_attribute.c: New test. From-SVN: r268903 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/aarch64/pcs_attribute.c | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/gcc.target/aarch64/pcs_attribute.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 61f2a4732c1..7b6ad84eb99 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-02-14 Steve Ellcey + + * gcc.target/aarch64/pcs_attribute.c: New test. + 2019-02-14 Harald Anlauf PR fortran/88248 diff --git a/gcc/testsuite/gcc.target/aarch64/pcs_attribute.c b/gcc/testsuite/gcc.target/aarch64/pcs_attribute.c new file mode 100644 index 00000000000..9a99b91a6ed --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/pcs_attribute.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ + +/* Test that the assignment of f (with the attribute) to function pointer g + (with no attribute) results in an error. */ + +__attribute__((aarch64_vector_pcs)) void f(void); +void (*g)(void) = f; /* { dg-error "incompatible pointer type" } */ -- 2.30.2