Commit 315a541c by Eric Botcazou Committed by Eric Botcazou

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

From-SVN: r231416
parent a1b93f8d
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):
......
...@@ -22,6 +22,6 @@ void foo (int i, ...) ...@@ -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);
} }
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