* gcc.dg/sso-9.c (foo): Robustify trick.

From-SVN: r231416
This commit is contained in:
Eric Botcazou 2015-12-08 17:08:18 +00:00 committed by Eric Botcazou
parent a1b93f8daf
commit 315a541c45
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/sso-9.c (foo): Robustify trick.
2015-12-08 David Malcolm <dmalcolm@redhat.com> 2015-12-08 David Malcolm <dmalcolm@redhat.com>
* gcc.dg/plugin/diagnostic-test-expressions-1.c (test_alignof): * gcc.dg/plugin/diagnostic-test-expressions-1.c (test_alignof):

View File

@ -22,6 +22,6 @@ void foo (int i, ...)
{ {
struct Rec a; struct Rec a;
va_start (a.v, i); va_start (a.v, i);
a.v = a.v, x = va_arg (a.v, int); /* { dg-error "array type|reverse storage order" } */ a.v = 0, x = va_arg (a.v, int); /* { dg-error "type|reverse storage order" } */
va_end (a.v); va_end (a.v);
} }