* g++.dg/cpp1z/direct-enum-init1.C: Correct error message.
From-SVN: r247815
This commit is contained in:
parent
65d7adba7b
commit
824c3184d7
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ foo ()
|
|||
C c1 { s };
|
||||
D d1 { D(t) }; // { dg-error "invalid cast from type 'T' to type 'D {enum}'" }
|
||||
D d2 { t }; // { dg-error "cannot convert 'T' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
// { dg-error "invalid cast from type 'T' to type 'D'" "" { target c++1z } .-1 }
|
||||
// { dg-error "invalid cast from type 'T' to type 'D {enum}'" "" { target c++1z } .-1 }
|
||||
D d3 { 9 }; // { dg-error "cannot convert 'int' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
D d4 { l }; // { dg-error "cannot convert 'long int' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
D d5 { D(l) };
|
||||
|
@ -89,7 +89,7 @@ foo2 ()
|
|||
C c1 { s };
|
||||
D d1 { D(t) }; // { dg-error "invalid cast from type 'T' to type 'D {enum}'" }
|
||||
D d2 { t }; // { dg-error "cannot convert 'T' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
// { dg-error "invalid cast from type 'T' to type 'D'" "" { target c++1z } .-1 }
|
||||
// { dg-error "invalid cast from type 'T' to type 'D {enum}'" "" { target c++1z } .-1 }
|
||||
D d3 { 9 }; // { dg-error "cannot convert 'int' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
D d4 { l }; // { dg-error "cannot convert 'long int' to 'D {enum}' in initialization" "" { target c++14_down } }
|
||||
D d5 { D(l) };
|
||||
|
|
Loading…
Add table
Reference in a new issue