⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cse2.c

📁 gcc-you can use this code to learn something about gcc, and inquire further into linux,
💻 C
字号:
// This testcase caused ICE on IA-32 in simplify_unary_operation// CSE did not assume SUBREGs changing mode from integral to floating.// { dg-do run { target i?86-*-* sparc*-*-* } }// { dg-options "-O2" }struct A{  union    {      float f;      unsigned int w;    } a;  static inline const A foo (void)    {      return A ((unsigned int) (__extension__ ((union { unsigned l; float d; })					       { l: 0x3f800000 }).d));    }  inline A (float f) { a.f = f; }  A ();  inline A (unsigned int w) { a.w = w; }};A::A(){  *this = foo ();}A a;extern "C" void abort (void);extern "C" void exit (int);int main (){  if (a.a.w != 1)    abort ();  exit (0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -