aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p4173.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/p4173.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p4173.C24
1 files changed, 1 insertions, 23 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p4173.C b/gcc/testsuite/g++.old-deja/g++.mike/p4173.C
index a5b11f226d2..4f388e32cbc 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p4173.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p4173.C
@@ -1,24 +1,2 @@
-// This error happens because lvalue is not done well in the C++ front-end.
-// NOPs should be lvalues if their arguments are.
-// NON_LVALUE_EXPRs shouldn't be.
-// Special g++ Options: -Wall -ansi -pedantic-errors
-// Build don't link:
-// prms-id: 4173
-
-enum TypeKind {
- RecordTypeKind
-};
-struct Type
-{
- enum TypeKind kind : 8;
- unsigned char prefixLen;
-};
-
-Type a;
-Type b;
-TypeKind c;
-main() {
- a.kind = b.kind = c;
- (a.kind = c) = b.kind; // gets bogus error
-}
+int