summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/deprecated-2.c
blob: c4ca8a272d033b4e37721e0f7185f4fc76601e5e (plain)
1
2
3
4
5
6
7
/* Test __attribute__((deprecated)).  Test types without names.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */

struct { int a; } __attribute__((deprecated)) x; /* { dg-warning "type is deprecated" } */
typeof(x) y; /* { dg-warning "type is deprecated" } */