summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/anon-struct4.C
blob: fa5bd4b3d8a8da65b568e8652b625984541ab059 (plain)
1
2
3
4
5
// PR c++/14401

struct { struct { int& i ; } bar ; } foo ; // { dg-error "uninitialized" "uninit" }
// { dg-warning "anonymous" "anon" { target *-*-* } 3 }
// { dg-message "should be initialized" "ref-uninit" { target *-*-* } 3 }