/* PR preprocessor/27746 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -Wunknown-pragmas" } */ #define p _Pragma ("omp pa…
Macro+Programming 源代码
汇集 Macro+Programming 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/* PR preprocessor/27746 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-omplower" } */ #define omp FOO #define…
// { dg-do compile } #define p parallel #define s(x) shared(x##1, x##2) #define d(x) default(x) void bar(int, int, int, int); vo…
#include "macro-1.h" int main(void) { return DEFINED_VALUE + 1 - DEFINED_PARAM (3); }
#define DEFN aa + bb #include "macro-4.h" int foo(int aa, int bb) { return DEFN; }
#define DEFINED_FUNC_2(x) (3 + (x)) #include "macro-3.h" int main(void) { return DEFINED_FUNC (1) - DEFINED_FUNC_2 (-1); }
/* No content! */
#define DEFINED_VALUE 3 #define DEFINED_PARAM(x) (x+1)
#define DEFINED_FUNC(x) 3 - (x)
#define DEFINED_VALUE_2 3 #include "macro-2.h" int main(void) { return DEFINED_VALUE - DEFINED_VALUE_2; }