p4173.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 27 行
C
27 行
// { dg-do assemble }// { dg-options "-Wall -ansi -pedantic-errors" }// 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.// prms-id: 4173enum TypeKind { RecordTypeKind};struct Type{ enum TypeKind kind : 8; unsigned char prefixLen; };Type a;Type b;TypeKind c;intmain() { a.kind = b.kind = c; (a.kind = c) = b.kind; // { dg-bogus "" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?