]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-02-14 Steve Ellcey <sellcey@marvell.com>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Feb 2019 21:05:48 +0000 (21:05 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Feb 2019 21:05:48 +0000 (21:05 +0000)
* gcc.target/aarch64/pcs_attribute.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268903 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pcs_attribute.c [new file with mode: 0644]

index 61f2a4732c159f33eaf33e434892c3259e63e503..7b6ad84eb990bc084cfffb52500bc2ffd145e72a 100644 (file)
@@ -1,3 +1,7 @@
+2018-02-14  Steve Ellcey  <sellcey@marvell.com>
+
+       * gcc.target/aarch64/pcs_attribute.c: New test.
+
 2019-02-14  Harald Anlauf  <anlauf@gmx.de>
 
        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 (file)
index 0000000..9a99b91
--- /dev/null
@@ -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" } */