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

📄 sra-1.c

📁 linux下编程用 编译软件
💻 C
字号:
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized --param sra-max-structure-size=32" } *//* Tests for SRA. */typedef struct teststruct{  double d;  char f1;} teststruct;voidcopystruct1 (teststruct param){  teststruct local;  param.f1 = 0;  local = param;  if (local.f1 != 0)    link_error ();}voidcopystruct11 (teststruct *param){  teststruct local;  param->f1 = 0;  local = *param;  if (local.f1 != 0)    link_error ();}voidcopystruct111 (teststruct param){  teststruct *local = &param;  param.f1 = 0;  if (local->f1 != 0)    link_error ();}teststruct globf;voidcopystruct1111 (void){  teststruct local;  globf.f1 = 0;  local = globf;  if (local.f1 != 0)    link_error ();}voidcopystruct11111 (void){  teststruct *local = &globf;  globf.f1 = 0;  if (local->f1 != 0)    link_error ();}voidcopystruct111111 (teststruct param){  static teststruct local;  param.f1 = 0;  local = param;  if (local.f1 != 0)    link_error ();}/* There should be no referenc to link_error. *//* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } *//* { dg-final { cleanup-tree-dump "optimized" } } */

⌨️ 快捷键说明

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