testsuite - Require alias support for three tests.

2019-01-08  Iain Sandoe  <iain@sandoe.co.uk>

gcc/testsuite/

	* gcc.dg/Wmissing-attributes.c: Require alias support.
	* gcc.dg/attr-copy-2.c: Likewise.
	* gcc.dg/attr-copy-5.c: Likewise.

From-SVN: r267673
This commit is contained in:
Iain Sandoe 2019-01-08 09:15:34 +00:00 committed by Iain Sandoe
parent ff0425cdeb
commit 2e81e6e929
4 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2019-01-08 Iain Sandoe <iain@sandoe.co.uk>
* gcc.dg/Wmissing-attributes.c: Require alias support.
* gcc.dg/attr-copy-2.c: Likewise.
* gcc.dg/attr-copy-5.c: Likewise.
2019-01-08 Jonathan Wakely <jwakely@redhat.com>
Jakub Jelinek <jakub@redhat.com>

View file

@ -1,5 +1,6 @@
/* PR middle-end/81824 - Warn for missing attributes with function aliases
{ dg-do compile }
{ dg-require-alias "" }
{ dg-options "-Wall" } */
#define ATTR(list) __attribute__ (list)

View file

@ -1,6 +1,7 @@
/* PR middle-end/81824 - Warn for missing attributes with function aliases
Exercise attribute copy for functions.
{ dg-do compile }
{ dg-require-alias "" }
{ dg-options "-O2 -Wall" } */
#define Assert(expr) typedef char AssertExpr[2 * !!(expr) - 1]

View file

@ -3,6 +3,7 @@
copied. Also verify that copying attribute tls_model to a non-thread
variable triggers a warning.
{ dg-do compile }
{ dg-require-alias "" }
{ dg-options "-Wall" }
{ dg-require-effective-target tls } */