Commit cc259397 by Steve Ellcey Committed by Steve Ellcey

pcs_attribute.c: New test.

2018-02-14  Steve Ellcey  <sellcey@marvell.com>

	* gcc.target/aarch64/pcs_attribute.c: New test.

From-SVN: r268903
parent 497f281c
2018-02-14 Steve Ellcey <sellcey@marvell.com>
* gcc.target/aarch64/pcs_attribute.c: New test.
2019-02-14 Harald Anlauf <anlauf@gmx.de> 2019-02-14 Harald Anlauf <anlauf@gmx.de>
PR fortran/88248 PR fortran/88248
......
/* { 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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment