Commit 2e81e6e9 by Iain Sandoe Committed by Iain Sandoe

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
parent ff0425cd
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> 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
......
/* PR middle-end/81824 - Warn for missing attributes with function aliases /* PR middle-end/81824 - Warn for missing attributes with function aliases
{ dg-do compile } { dg-do compile }
{ dg-require-alias "" }
{ dg-options "-Wall" } */ { dg-options "-Wall" } */
#define ATTR(list) __attribute__ (list) #define ATTR(list) __attribute__ (list)
......
/* PR middle-end/81824 - Warn for missing attributes with function aliases /* PR middle-end/81824 - Warn for missing attributes with function aliases
Exercise attribute copy for functions. Exercise attribute copy for functions.
{ dg-do compile } { dg-do compile }
{ dg-require-alias "" }
{ dg-options "-O2 -Wall" } */ { dg-options "-O2 -Wall" } */
#define Assert(expr) typedef char AssertExpr[2 * !!(expr) - 1] #define Assert(expr) typedef char AssertExpr[2 * !!(expr) - 1]
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
copied. Also verify that copying attribute tls_model to a non-thread copied. Also verify that copying attribute tls_model to a non-thread
variable triggers a warning. variable triggers a warning.
{ dg-do compile } { dg-do compile }
{ dg-require-alias "" }
{ dg-options "-Wall" } { dg-options "-Wall" }
{ dg-require-effective-target tls } */ { dg-require-effective-target tls } */
......
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