📄 wstrict-aliasing-bogus-signed-unsigned.c
字号:
/* { dg-do compile } *//* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */int foo () { int i; unsigned int* pu = reinterpret_cast<unsigned int*> (&i); /* { dg-bogus "signed vs. unsigned" } */ *pu = 1000000; return i;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -