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 `int alpha'" }
9 double alpha; // { dg-error "declaration of" }
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 "" "" }
24 // The duplicated error messages are xfailed for now (tracked in the PR)
25 // { dg-bogus "" "duplicate error messages" { xfail *-*-* } 8 }
26 // { dg-bogus "" "duplicate error messages" { xfail *-*-* } 9 }