comparison gcc/testsuite/gcc.dg/anon-struct-6.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Test diagnostics for structure member with no type specifier or
2 declarator. Test with no special options. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
6
7 struct s {
8 int a;
9 const;
10 /* { dg-warning "useless type qualifier in empty declaration" "empty" { target *-*-* } .-1 } */
11 /* { dg-warning "empty declaration" "empty 2" { target *-*-* } .-2 } */
12 };