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

📄 pr27528.c

📁 用于进行gcc测试
💻 C
字号:
/* Check the warnings and errors generated for asm operands that aren't   obviously constant but that are constrained to be constants.  *//* { dg-options "" } *//* { dg-error "impossible constraint" "" { target *-*-* } 13 } *//* { dg-error "impossible constraint" "" { target *-*-* } 14 } *//* { dg-error "impossible constraint" "" { target *-*-* } 15 } *//* { dg-error "impossible constraint" "" { target *-*-* } 16 } */int bar (int);voidfoo (int *x, int y){  int constant = 0;  asm ("# %0" :: "i" (x)); /* { dg-warning "probably doesn't match" } */  asm ("# %0" :: "i" (bar (*x))); /* { dg-warning "probably doesn't match" } */  asm ("# %0" :: "i" (*x + 0x11)); /* { dg-warning "probably doesn't match" } */  asm ("# %0" :: "i" (constant)); /* { dg-warning "probably doesn't match" } */  asm ("# %0" :: "i" (y * 0)); /* folded */}

⌨️ 快捷键说明

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