]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr65901.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr65901.c
CommitLineData
4e81b788
MP
1/* PR c/65901 */
2/* { dg-do compile } */
3/* { dg-options "" } */
4
5struct S;
6enum E;
7union U;
8
9void
10foo (__builtin_va_list ap)
11{
ec3fba51
MP
12 __builtin_va_arg (ap, void); /* { dg-error "second argument to .va_arg. is of incomplete type .void." } */
13 __builtin_va_arg (ap, struct S); /* { dg-error "second argument to .va_arg. is of incomplete type .struct S." } */
14 __builtin_va_arg (ap, enum E); /* { dg-error "second argument to .va_arg. is of incomplete type .enum E." } */
15 __builtin_va_arg (ap, union U); /* { dg-error "second argument to .va_arg. is of incomplete type .union U." } */
4e81b788 16}