volatile-1.m
来自「用于进行gcc测试」· M 代码 · 共 19 行
M
19 行
/* Test for proper handling of volatile parameters in ObjC methods. *//* { dg-do compile } *//* { dg-options "-O2" } *//* Contributed by Ziemowit Laski <zlaski@apple.com> */@interface Test-(void) test2: (volatile int) a;@end@implementation Test-(void) test2: (volatile int) a{ /* The following assignment should NOT be optimized away. */ a = 1;}@end/* { dg-final { scan-assembler "li r\[0-9\]+,1" { target powerpc*-*-darwin* } } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?