sra-1.c
来自「用于进行gcc测试」· C语言 代码 · 共 30 行
C
30 行
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 *//* SRA failed to canonicalize bit-field types, introducing type mismatches. *//* { dg-do compile } *//* { dg-options "-O2" } */struct A{ int a:16; /* These dummy bit-fields are here to prevent GCC 4.2+ from merging the bit-field compares into a single word compare, which disables SRA. */ int a2:16; int a3:16; int a4:16; int b:8; bool operator==(A const x) const { return (this->a == x.a && this->b == x.b); }};boolfoo (A const x, A const y){ return x == y;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?