2 // Contributed by: Michael Elizabeth Chastain
3 // <mec dot gnu at mindspring dot com>
4 // PR c++/13927: Wrong error message for redeclartion of type from union
8 union { int alpha; int beta; }; // { dg-error "previous declaration" }
9 double alpha; // { dg-error "conflicting declaration" }
12 // This checks both the templated version, and the position of the diagnostic
13 // (which is currently wrong).
18 int alpha; // { dg-error "" "" { xfail *-*-* } }
20 }; // { dg-bogus "" "misplaced position of the declaration" { xfail *-*-* } }
21 double alpha; // { dg-error "" "" }