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

📄 barrier-2.c

📁 用于进行gcc测试
💻 C
字号:
/* { dg-do compile } */void f1(void){  #pragma omp barrier a		/* { dg-error "expected end of line" } */}/* OpenMP 2.5, section 2.7.3:   Note that because the barrier construct does not have a C language   statement as part of its syntax, there are some restrictions on its   placement within a program. The barrier directive may only be placed   in the program at a position where ignoring or deleting the directive   would result in a program with correct syntax.  */void f2(void){  label:       /* { dg-error "label at end of compound statement" } */    #pragma omp barrier}void f3(_Bool p){  if (p)    #pragma omp barrier		/* { dg-error "compound statements" } */}

⌨️ 快捷键说明

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