您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ tmain函数代码示例

51自学网 2021-06-03 08:52:31
  C++
这篇教程C++ tmain函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中tmain函数的典型用法代码示例。如果您正苦于以下问题:C++ tmain函数的具体用法?C++ tmain怎么用?C++ tmain使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了tmain函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main(int argc, char **argv) {  static int a;// CHECK: static int a;#pragma omp taskyield  // CHECK-NEXT: #pragma omp taskyield  return tmain(argc) + tmain(argv[0][0]) + a;}
开发者ID:4ntoine,项目名称:clang,代码行数:7,


示例2: main

int main(int argc, char **argv) {  static int a;// CHECK: static int a;#pragma omp barrier  // CHECK-NEXT: #pragma omp barrier  switch (argc) {  case 0:#pragma omp barrier#pragma omp barrier    break;  default:#pragma omp barrier    break;  }// CHECK-NEXT: switch (argc) {// CHECK-NEXT: case 0:// CHECK-NEXT: #pragma omp barrier// CHECK-NEXT: #pragma omp barrier// CHECK-NEXT: break;// CHECK-NEXT: default:// CHECK-NEXT: #pragma omp barrier// CHECK-NEXT: break;// CHECK-NEXT: }  return tmain(argc) + tmain(argv[0][0]) + a;}
开发者ID:JaredCJR,项目名称:clang,代码行数:25,


示例3: main

// CHECK-LABEL: @mainint main(int argc, char **argv) {  static int a;#pragma omp taskyield  // CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num([[IDENT_T]]* @{{.+}})  // CHECK: call i32 @__kmpc_omp_taskyield([[IDENT_T]]* @{{.+}}, i32 [[GTID]], i32 0)  // CHECK: call {{.+}} [[TMAIN_INT:@.+]](i{{[0-9][0-9]}}  // CHECK: call {{.+}} [[TMAIN_CHAR:@.+]](i{{[0-9]}}  return tmain(argc) + tmain(argv[0][0]) + a;}
开发者ID:JaredCJR,项目名称:clang,代码行数:10,


示例4: main

// CHECK-LABEL: @mainint main(int argc, char **argv) {  static int a;#pragma omp barrier  // CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num([[IDENT_T]]* [[LOC]])  // CHECK: call void @__kmpc_barrier([[IDENT_T]]* [[EXPLICIT_BARRIER_LOC]], i32 [[GTID]])  // CHECK: call {{.+}} [[TMAIN_INT:@.+]](i{{[0-9][0-9]}}  // CHECK: call {{.+}} [[TMAIN_CHAR:@.+]](i{{[0-9]}}  return tmain(argc) + tmain(argv[0][0]) + a;}
开发者ID:JaredCJR,项目名称:clang,代码行数:10,


示例5: main

int main (int argc, char **argv) {  float x;  int b = argc, c, d, e, f, g;  static int a;// CHECK: static int a;#pragma omp parallel// CHECK-NEXT: #pragma omp parallel  a=2;// CHECK-NEXT: a = 2;#pragma omp parallel if(a) num_threads(a), default(none), private(argc,b),firstprivate(argv, c),shared(d,f),reduction(+:e) reduction(min : g) proc_bind(master)// CHECK: #pragma omp parallel if(a) num_threads(a) default(none) private(argc,b) firstprivate(argv,c) shared(d,f) reduction(+: e) reduction(min: g) proc_bind(master)  foo();// CHECK-NEXT: foo();  return tmain(b, &b) + tmain(x, &x);}
开发者ID:PHHargrove,项目名称:clang-upc,代码行数:15,


示例6: main

int main(int argc, char **argv) {  int i;  #pragma omp parallel for simd if // expected-error {{expected '(' after 'if'}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if () // expected-error {{expected expression}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (argc)) // expected-warning {{extra tokens at the end of '#pragma omp parallel for simd' are ignored}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (argc > 0 ? argv[1] : argv[2])  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (foobool(argc)), if (true) // expected-error {{directive '#pragma omp parallel for simd' cannot contain more than one 'if' clause}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (S1) // expected-error {{'S1' does not refer to a value}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (argc argc) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if (1 0) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp parallel for simd if(if(tmain(argc, argv) // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  return tmain(argc, argv);}
开发者ID:SpiderBrad,项目名称:clang,代码行数:29,


示例7: main

// CHECK-LABEL: define {{.*}}i{{[0-9]+}} @main()int main() {// CHECK: [[GTID:%.+]] = call {{.*}}i32 @__kmpc_global_thread_num(// CHECK: call {{.*}}void {{.+}} @__kmpc_fork_call(%{{.+}}* @{{.+}}, i{{.+}} 0, void {{.+}}* [[CAP_FN4:@.+]] to void#pragma omp parallel if (true)  fn4();// CHECK: call {{.*}}void @__kmpc_serialized_parallel(%{{.+}}* @{{.+}}, i32 [[GTID]])// CHECK: store i32 [[GTID]], i32* [[GTID_ADDR:%.+]],// CHECK: call void [[CAP_FN5:@.+]](i32* [[GTID_ADDR]],// CHECK: call {{.*}}void @__kmpc_end_serialized_parallel(%{{.+}}* @{{.+}}, i32 [[GTID]])#pragma omp parallel if (false)  fn5();// CHECK: br i1 %{{.+}}, label %[[OMP_THEN:.+]], label %[[OMP_ELSE:.+]]// CHECK: [[OMP_THEN]]// CHECK: call {{.*}}void {{.+}} @__kmpc_fork_call(%{{.+}}* @{{.+}}, i{{.+}} 0, void {{.+}}* [[CAP_FN6:@.+]] to void// CHECK: br label %[[OMP_END:.+]]// CHECK: [[OMP_ELSE]]// CHECK: call {{.*}}void @__kmpc_serialized_parallel(%{{.+}}* @{{.+}}, i32 [[GTID]])// CHECK: store i32 [[GTID]], i32* [[GTID_ADDR:%.+]],// CHECK: call void [[CAP_FN6]](i32* [[GTID_ADDR]],// CHECK: call {{.*}}void @__kmpc_end_serialized_parallel(%{{.+}}* @{{.+}}, i32 [[GTID]])// CHECK: br label %[[OMP_END]]// CHECK: [[OMP_END]]#pragma omp parallel if (Arg)  fn6();  // CHECK: = call {{.*}}i{{.+}} @{{.+}}tmain  return tmain(Arg);}
开发者ID:AlexDenisov,项目名称:clang,代码行数:29,


示例8: main

int main() {  TCHAR **argv, **enpv;  int argc, si = 0;  __wgetmainargs(&argc, &argv, &enpv, _CRT_glob, &si);  return tmain(argc, argv);}
开发者ID:stefanb,项目名称:GeoCoordinateConverter,代码行数:7,


示例9: main

// CHECK-LABEL: @mainint main() {// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 32, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN4:[^ ]+]] to i32 (i32, i8*)*))// CHECK: call i32 @__kmpc_omp_task(%{{.+}}* @{{.+}}, i32 [[GTID]], i8* [[ORIG_TASK_PTR]])#pragma omp task if (true)  fn4();// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc(// CHECK: [[TASK_PTR:%.+]] = bitcast i8* [[ORIG_TASK_PTR]] to// CHECK: call void @__kmpc_omp_task_begin_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: call i32 [[CAP_FN5:@.+]](i32 [[GTID]], %{{.+}}* [[TASK_PTR]])// CHECK: call void @__kmpc_omp_task_complete_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])#pragma omp task if (false)  fn5();// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 32, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN6:[^ ]+]] to i32 (i32, i8*)*))// CHECK: [[TASK_PTR:%.+]] = bitcast i8* [[ORIG_TASK_PTR]] to// CHECK: br i1 %{{.+}}, label %[[OMP_THEN:.+]], label %[[OMP_ELSE:.+]]// CHECK: [[OMP_THEN]]// CHECK: call i32 @__kmpc_omp_task(%{{.+}}* @{{.+}}, i32 [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: br label %[[OMP_END:.+]]// CHECK: [[OMP_ELSE]]// CHECK: call void @__kmpc_omp_task_begin_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: call i32 [[CAP_FN6:@.+]](i32 [[GTID]], %{{.+}}* [[TASK_PTR]])// CHECK: call void @__kmpc_omp_task_complete_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: br label %[[OMP_END]]// CHECK: [[OMP_END]]#pragma omp task if (Arg)  fn6();  // CHECK: = call {{.*}}i{{.+}} @{{.+}}tmain  return tmain(Arg);}
开发者ID:CODECOMMUNITY,项目名称:clang,代码行数:32,


示例10: main

int main() {	BApplication app("application/x.vnd-Procton.ABrowseTest1");		tmain();		app.Run();	return 0;}
开发者ID:BackupTheBerlios,项目名称:nirvana-svn,代码行数:8,


示例11: main

int main (int argc, char **argv) {#pragma omp target#pragma omp teams  {  argc = 0;  }  return tmain(argv);}
开发者ID:AlexDenisov,项目名称:clang,代码行数:8,


示例12: main

int main (int argc, char **argv) {  int a = 20;  int b = 5;#pragma omp target#pragma omp teams num_teams(a) thread_limit(b)  {  argc = 0;  }  return tmain(argv);}
开发者ID:mathben,项目名称:clang,代码行数:10,


示例13: main

// CHECK-LABEL: @mainint main() {  static int a;#pragma omp flush#pragma omp flush(a)  // CHECK: call {{.*}}void @__kmpc_flush(%{{.+}}* {{(@|%).+}})  // CHECK: call {{.*}}void @__kmpc_flush(%{{.+}}* {{(@|%).+}})  return tmain(a);  // CHECK: call {{.*}} [[TMAIN:@.+]](  // CHECK: ret}
开发者ID:AlexDenisov,项目名称:clang,代码行数:11,


示例14: main

intmain(int argc, const char *argv[]){	args(argc, argv);	input();	tsetup();	tmain();	tend();	yank();	return 0;}
开发者ID:sdelafond,项目名称:yank,代码行数:11,


示例15: main

int main(int argc, char **argv) {#pragma omp taskyield  ;#pragma omp taskyield untied  // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp taskyield'}}#pragma omp taskyield unknown // expected-warning {{extra tokens at the end of '#pragma omp taskyield' are ignored}}  if (argc)#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}    if (argc) {#pragma omp taskyield    }  while (argc)#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}    while (argc) {#pragma omp taskyield    }  do#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}    while (argc)      ;  do {#pragma omp taskyield  } while (argc);  switch (argc)#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}    switch (argc)    case 1:#pragma omp taskyield  switch (argc)  case 1: {#pragma omp taskyield  }  switch (argc) {#pragma omp taskyield  case 1:#pragma omp taskyield    break;  default: {#pragma omp taskyield  } break;  }  for (;;)#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}    for (;;) {#pragma omp taskyield    }label:#pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}label1 : {#pragma omp taskyield}  return tmain(argc);}
开发者ID:AlexDenisov,项目名称:clang,代码行数:53,


示例16: main

int main(int argc, char **argv) {  int j;#pragma omp target update to(j) device // expected-error {{expected '(' after 'device'}}#pragma omp target update from(j) device ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}#pragma omp target update to(j) device () // expected-error {{expected expression}}#pragma omp target update from(j) device (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}#pragma omp target update to(j) device (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target update' are ignored}}#pragma omp target update from(j) device (argc > 0 ? argv[1] : argv[2]) // expected-error {{expression must have integral or unscoped enumeration type, not 'char *'}}#pragma omp target update to(j) device (argc + argc)#pragma omp target update from(j) device (argc), device (argc+1) // expected-error {{directive '#pragma omp target update' cannot contain more than one 'device' clause}}#pragma omp target update to(j) device (S1) // expected-error {{'S1' does not refer to a value}}#pragma omp target update from(j) device (-2) // expected-error {{argument to 'device' clause must be a non-negative integer value}}#pragma omp target update to(j) device (3.14) // expected-error {{expression must have integral or unscoped enumeration type, not 'double'}}  return tmain(argc, argv); // expected-note {{in instantiation of function template specialization 'tmain<int, char>' requested here}}}
开发者ID:LegalizeAdulthood,项目名称:clang,代码行数:16,


示例17: main

int main(int argc, char **argv) {  #pragma omp task final // expected-error {{expected '(' after 'final'}}  #pragma omp task final ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  #pragma omp task final () // expected-error {{expected expression}}  #pragma omp task final (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}  #pragma omp task final (argc)) // expected-warning {{extra tokens at the end of '#pragma omp task' are ignored}}  #pragma omp task final (argc > 0 ? argv[1] : argv[2])  #pragma omp task final (foobool(argc)), final (true) // expected-error {{directive '#pragma omp task' cannot contain more than one 'final' clause}}  #pragma omp task final (S1) // expected-error {{'S1' does not refer to a value}}  #pragma omp task final (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}}  #pragma omp task final (argc argc) // expected-error {{expected ')'}} expected-note {{to match this '('}}  #pragma omp task final (1 0) // expected-error {{expected ')'}} expected-note {{to match this '('}}  #pragma omp task final(if(tmain(argc, argv) // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  foo();  return tmain(argc, argv);}
开发者ID:4ntoine,项目名称:clang,代码行数:17,


示例18: main

int main(int argc, char **argv) {  #pragma omp taskloop num_tasks // expected-error {{expected '(' after 'num_tasks'}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks () // expected-error {{expected expression}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (argc)) // expected-warning {{extra tokens at the end of '#pragma omp taskloop' are ignored}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (argc > 0 ? argv[1][0] : argv[2][argc])  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (foobool(argc)), num_tasks (true) // expected-error {{directive '#pragma omp taskloop' cannot contain more than one 'num_tasks' clause}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (S1) // expected-error {{'S1' does not refer to a value}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (argc argc) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks (1 0) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks(if(tmain(argc, argv) // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks(0)  // expected-error {{argument to 'num_tasks' clause must be a strictly positive integer value}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks(-1) // expected-error {{argument to 'num_tasks' clause must be a strictly positive integer value}}  for (int i = 0; i < 10; ++i)    foo();  #pragma omp taskloop num_tasks(argc) grainsize(argc) // expected-error {{'grainsize' and 'num_tasks' clause are mutually exclusive and may not appear on the same directive}} expected-note {{'num_tasks' clause is specified here}}  for (int i = 0; i < 10; ++i)    foo();  return tmain(argc, argv);}
开发者ID:AlexDenisov,项目名称:clang,代码行数:46,


示例19: main

// CHECK-LABEL: @mainint main() {// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 40, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN7:[^ ]+]] to i32 (i32, i8*)*))// CHECK: call i32 @__kmpc_omp_task(%{{.+}}* @{{.+}}, i32 [[GTID]], i8* [[ORIG_TASK_PTR]])#pragma omp task if (true)  fn7();// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 40, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN8:[^ ]+]] to i32 (i32, i8*)*))// CHECK: [[TASK_PTR:%.+]] = bitcast i8* [[ORIG_TASK_PTR]] to// CHECK: call void @__kmpc_omp_task_begin_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: call i32 [[CAP_FN8]](i32 [[GTID]], %{{.+}}* [[TASK_PTR]])// CHECK: call void @__kmpc_omp_task_complete_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])#pragma omp task if (false)  fn8();// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 40, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN9:[^ ]+]] to i32 (i32, i8*)*))// CHECK: [[TASK_PTR:%.+]] = bitcast i8* [[ORIG_TASK_PTR]] to// CHECK: br i1 %{{.+}}, label %[[OMP_THEN:.+]], label %[[OMP_ELSE:.+]]// CHECK: [[OMP_THEN]]// CHECK: call i32 @__kmpc_omp_task(%{{.+}}* @{{.+}}, i32 [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: br label %[[OMP_END:.+]]// CHECK: [[OMP_ELSE]]// CHECK: call void @__kmpc_omp_task_begin_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: call i32 [[CAP_FN9]](i32 [[GTID]], %{{.+}}* [[TASK_PTR]])// CHECK: call void @__kmpc_omp_task_complete_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: br label %[[OMP_END]]// CHECK: [[OMP_END]]#pragma omp task if (Arg)  fn9();// CHECK: [[ORIG_TASK_PTR:%.+]] = call i8* @__kmpc_omp_task_alloc({{[^,]+}}, i32 [[GTID]], i32 1, i64 40, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[CAP_FN10:[^ ]+]] to i32 (i32, i8*)*))// CHECK: [[TASK_PTR:%.+]] = bitcast i8* [[ORIG_TASK_PTR]] to// CHECK: br i1 %{{.+}}, label %[[OMP_THEN:.+]], label %[[OMP_ELSE:.+]]// CHECK: [[OMP_THEN]]// CHECK: call i32 @__kmpc_omp_task_with_deps(%{{.+}}* @{{.+}}, i32 [[GTID]], i8* [[ORIG_TASK_PTR]], i32 1, i8* [[LIST:%[^,]+]], i32 0, i8* null)// CHECK: br label %[[OMP_END:.+]]// CHECK: [[OMP_ELSE]]// CHECK: call void @__kmpc_omp_wait_deps(%{{.+}}* @{{.+}}, i32 [[GTID]], i32 1, i8* [[LIST]], i32 0, i8* null)// CHECK: call void @__kmpc_omp_task_begin_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: call i32 [[CAP_FN10]](i32 [[GTID]], %{{.+}}* [[TASK_PTR]])// CHECK: call void @__kmpc_omp_task_complete_if0(%{{.+}}* @{{.+}}, i{{.+}} [[GTID]], i8* [[ORIG_TASK_PTR]])// CHECK: br label %[[OMP_END]]// CHECK: [[OMP_END]]#pragma omp task if (Arg) depend(inout : Arg)  fn10();  // CHECK: = call {{.*}}i{{.+}} @{{.+}}tmain  return tmain(Arg);}
开发者ID:CSI-LLVM,项目名称:clang,代码行数:47,


示例20: main

int main(int argc, char **argv) {  int i;  #pragma omp target parallel for simd if // expected-error {{expected '(' after 'if'}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if () // expected-error {{expected expression}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target parallel for simd' are ignored}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (argc > 0 ? argv[1] : argv[2])  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (foobool(argc)), if (true) // expected-error {{directive '#pragma omp target parallel for simd' cannot contain more than one 'if' clause}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (S1) // expected-error {{'S1' does not refer to a value}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (argc argc) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if (1 0) // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(if(tmain(argc, argv) // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(target : // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(parallel : argc // expected-error {{expected ')'}} expected-note {{to match this '('}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(parallel : argc)  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(target : argc) if (for:argc) // expected-error {{directive name modifier 'for' is not allowed for '#pragma omp target parallel for simd'}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(target : argc) if (target :argc) // expected-error {{directive '#pragma omp target parallel for simd' cannot contain more than one 'if' clause with 'target' name modifier}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(parallel : argc) if (parallel :argc) // expected-error {{directive '#pragma omp target parallel for simd' cannot contain more than one 'if' clause with 'parallel' name modifier}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(target : argc) if (argc) // expected-error {{expected  'parallel' directive name modifier}} expected-note {{previous clause with directive name modifier specified here}}  for (i = 0; i < argc; ++i) foo();  #pragma omp target parallel for simd if(target : argc) if(parallel : argc) if (argc) // expected-error {{no more 'if' clause is allowed}} expected-note {{previous clause with directive name modifier specified here}} expected-note {{previous clause with directive name modifier specified here}}  for (i = 0; i < argc; ++i) foo();  return tmain(argc, argv);}
开发者ID:LegalizeAdulthood,项目名称:clang,代码行数:45,


示例21: main

int main(int argc, char *argv[])   {   libbase::cputimer tmain("Main timer");   // Set up user parameters   namespace po = boost::program_options;   po::options_description desc("Allowed options");   desc.add_options()("help", "print this help message");   desc.add_options()("tau,t", po::value<int>(), "interleaver length");   desc.add_options()("spread,s", po::value<int>(),         "interleaver spread to start with");   desc.add_options()("attempts,n", po::value<int>()->default_value(1000),         "number of attempts before reducing spread");   po::variables_map vm;   po::store(po::parse_command_line(argc, argv, desc), vm);   po::notify(vm);   // Validate user parameters   if (vm.count("help"))      {      std::cerr << desc << std::endl;      return 1;      }   // Interpret arguments   const int tau = vm["tau"].as<int> ();   int spread = vm["spread"].as<int> ();   const int max_attempts = vm["attempts"].as<int> ();   // Main process   libbase::int32u seed = 0;   myvector<int> lut = create_srandom(tau, spread, seed, max_attempts);   // Output   const std::string fname = compose_filename(tau, spread, seed);   std::ofstream file(fname.c_str());   serialize_interleaver(file, lut, tau, spread, seed, tmain.elapsed());   return 0;   }
开发者ID:jbresearch,项目名称:simcommsys,代码行数:38,


示例22: main

intmain(int argc, char *argv[]){	const struct field	*field;	char			*pat;	int			c, i, rflags = REG_EXTENDED;#ifdef __OpenBSD__	if (pledge("stdio rpath proc exec tty", NULL) == -1)		err(1, "pledge");#endif	setlocale(LC_CTYPE, "");	pat = strtopat(" ");	while ((c = getopt(argc, argv, "ilvxd:g:")) != -1)		switch (c) {		case 'd':			free(pat);			pat = strtopat(optarg);			break;		case 'g':			free(pat);			pat = optarg;			rflags |= REG_NEWLINE;			break;		case 'i':			rflags |= REG_ICASE;			break;		case 'l':			free(pat);			pat = strtopat("");			break;		case 'v':			puts("yank " VERSION);			exit(0);		case 'x':			tty.ca = 1;			break;		default:			usage();		}	argc -= optind;	argv += optind;	if (regcomp(&reg, pat, rflags) != 0)		errx(1, "invalid regular expression");	/* Ensure space for yank command and null terminator. */	if ((yankargv = calloc(argc + 3, sizeof(char *))) == NULL)		err(1, NULL);	if (argc)	{		for (i = 0; i < argc; i++)			yankargv[i] = argv[i];	}	else	{		yankargv[0] = YANKCMD;		yankargv[1] = YANKCMD2;	}	input();	tsetup();	field = tmain();	tend();	if (field == NULL)		return 1;	yank(in.v + field->so, field->eo - field->so + 1);	return 0;}
开发者ID:mikesart,项目名称:yank,代码行数:72,


示例23: main

//.........这里部分代码省略.........    foo();#pragma omp target parallel for simd reduction(- // expected-warning {{missing ':' after reduction identifier - ignoring}} expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction() // expected-error {{expected unqualified-id}} expected-warning {{missing ':' after reduction identifier - ignoring}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(*) // expected-warning {{missing ':' after reduction identifier - ignoring}} expected-error {{expected expression}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(/) // expected-error {{expected unqualified-id}} expected-warning {{missing ':' after reduction identifier - ignoring}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(foo : argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||', 'min' or 'max'}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name, array element or array section}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(~ : argc) // expected-error {{expected unqualified-id}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(&& : argc)  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(^ : S1) // expected-error {{'S1' does not refer to a value}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : a, b, c, d, f) // expected-error {{a reduction list item with incomplete type 'S1'}} expected-error 2 {{const-qualified list item cannot be reduction}} expected-error {{'operator+' is a private member of 'S2'}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(min : a, b, c, d, f) // expected-error {{a reduction list item with incomplete type 'S1'}} expected-error 2 {{arguments of OpenMP clause 'reduction' for 'min' or 'max' must be of arithmetic type}} expected-error 2 {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(max : h.b) // expected-error {{expected variable name, array element or array section}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : ba) // expected-error {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(* : ca) // expected-error {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(- : da) // expected-error {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(^ : fl) // expected-error {{invalid operands to binary expression ('float' and 'float')}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(&& : S2::S2s) // expected-error {{shared variable cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(&& : S2::S2sc) // expected-error {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(& : e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{invalid operands to binary expression ('S4' and 'S4')}} expected-error {{calling a private constructor of class 'S5'}} expected-error {{invalid operands to binary expression ('S5' and 'S5')}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : h, k, B::x) // expected-error 2 {{threadprivate or thread local variable cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : o) // expected-error {{no viable overloaded '='}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd private(i), reduction(+ : j), reduction(+ : q) // expected-error 2 {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp parallel private(k)#pragma omp target parallel for simd reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : p), reduction(+ : p) // expected-error {{variable can appear only once in OpenMP 'reduction' clause}} expected-note {{previously referenced here}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp target parallel for simd reduction(+ : r) // expected-error {{const-qualified list item cannot be reduction}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp parallel shared(i)#pragma omp parallel reduction(min : i)#pragma omp target parallel for simd reduction(max : j) // expected-error {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  for (int i = 0; i < 10; ++i)    foo();#pragma omp parallel private(fl)#pragma omp target parallel for simd reduction(+ : fl)  for (int i = 0; i < 10; ++i)    foo();#pragma omp parallel reduction(* : fl)#pragma omp target parallel for simd reduction(+ : fl)  for (int i = 0; i < 10; ++i)    foo();  static int m;#pragma omp target parallel for simd reduction(+ : m) // OK  for (int i = 0; i < 10; ++i)    m++;  return tmain(argc) + tmain(fl); // expected-note {{in instantiation of function template specialization 'tmain<int>' requested here}} expected-note {{in instantiation of function template specialization 'tmain<float>' requested here}}}
开发者ID:JaredCJR,项目名称:clang,代码行数:101,


示例24: create_srandom

myvector<int> create_srandom(const int tau, int& spread, libbase::int32u& seed,      const int max_attempts)   {   // set up time-keepers   libbase::pacifier p;   // set up random-number generation   libbase::truerand trng;   libbase::randgen seeder;   seeder.seed(trng.ival());   libbase::randgen prng;   // initialize space for results   myvector<int> lut(tau);   bool failed = true;   while (failed)      {      std::cerr << "Searching for solution at spread " << spread << std::endl;      // loop for a number of attempts at the given Spread, then      // reduce and continue as necessary      libbase::cputimer tmain("Attempt timer");      int attempt;      for (attempt = 0; attempt < max_attempts && failed; attempt++)         {         std::cerr << p.update(attempt, max_attempts);         // re-seed random generator         seed = seeder.ival();         prng.seed(seed);         // set up working variables         mylist<int> unused(tau);         unused.sequence();         // loop to fill all entries in the interleaver - or until we fail         failed = false;         for (int i = 0; i < tau && !failed; i++)            {            // set up for the current entry            mylist<pair<int> > untried = unused.pairup();            // loop for the current entry            // until we find a suitable value or totally fail trying            while (!failed)               {               // choose a random number from what's left to try               mylist<pair<int> >::iterator ndx = untried.getiteratorat(                     prng.ival(untried.size()));               const int n = ndx->value;               // if it's no good remove it from the list of options               if (!satisfiesspread(lut, n, i, spread))                  {                  untried.erase(ndx);                  failed = untried.empty();                  continue;                  }               // if it's a suitable value, insert & mark as used               else                  {                  unused.erase(ndx->index);                  lut(i) = n;                  break;                  }               }            }         }      // show user how fast we're working      tmain.stop();      std::cerr << "Attempts: " << attempt << " in " << tmain << std::endl;      std::cerr << "Speed: " << double(attempt) / tmain.elapsed()            << " attempts/sec" << std::endl;      // if this failed, prepare for the next attempt      if (failed)         spread--;      }   // stop timers   std::cerr << p.update(max_attempts, max_attempts);   return lut;   }
开发者ID:jbresearch,项目名称:simcommsys,代码行数:76,


示例25: main

//.........这里部分代码省略.........#pragma omp parallel sections reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}  {    foo();  }#pragma omp parallel sections reduction(~ : argc) // expected-error {{expected unqualified-id}}  {    foo();  }#pragma omp parallel sections reduction(&& : argc)  {    foo();  }#pragma omp parallel sections reduction(^ : S1) // expected-error {{'S1' does not refer to a value}}  {    foo();  }#pragma omp parallel sections reduction(+ : a, b, c, d, f) // expected-error {{reduction variable with incomplete type 'S1'}} expected-error 2 {{const-qualified variable cannot be reduction}}  {    foo();  }#pragma omp parallel sections reduction(min : a, b, c, d, f) // expected-error {{reduction variable with incomplete type 'S1'}} expected-error 2 {{arguments of OpenMP clause 'reduction' for 'min' or 'max' must be of arithmetic type}} expected-error 2 {{const-qualified variable cannot be reduction}}  {    foo();  }#pragma omp parallel sections reduction(max : argv[1]) // expected-error {{expected variable name}}  {    foo();  }#pragma omp parallel sections reduction(+ : ba) // expected-error {{a reduction variable with array type 'const S2 [5]'}}  {    foo();  }#pragma omp parallel sections reduction(* : ca) // expected-error {{a reduction variable with array type 'const S3 [5]'}}  {    foo();  }#pragma omp parallel sections reduction(- : da) // expected-error {{a reduction variable with array type 'const int [5]'}}  {    foo();  }#pragma omp parallel sections reduction(^ : fl) // expected-error {{variable of type 'float' is not valid for specified reduction operation}}  {    foo();  }#pragma omp parallel sections reduction(&& : S2::S2s)  {    foo();  }#pragma omp parallel sections reduction(&& : S2::S2sc) // expected-error {{const-qualified variable cannot be reduction}}  {    foo();  }#pragma omp parallel sections reduction(& : e, g) // expected-error {{reduction variable must have an accessible, unambiguous default constructor}} expected-error {{variable of type 'S5' is not valid for specified reduction operation}}  {    foo();  }#pragma omp parallel sections reduction(+ : h, k) // expected-error {{threadprivate or thread local variable cannot be reduction}}  {    foo();  }#pragma omp parallel sections reduction(+ : o) // expected-error {{variable of type 'class S6' is not valid for specified reduction operation}}  {    foo();  }#pragma omp parallel sections private(i), reduction(+ : j), reduction(+ : q) // expected-error 2 {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  {    foo();  }#pragma omp parallel private(k)#pragma omp parallel sections reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  {    foo();  }#pragma omp parallel sections reduction(+ : p), reduction(+ : p) // expected-error {{variable can appear only once in OpenMP 'reduction' clause}} expected-note {{previously referenced here}}  {    foo();  }#pragma omp parallel sections reduction(+ : r) // expected-error {{const-qualified variable cannot be reduction}}  {    foo();  }#pragma omp parallel shared(i)#pragma omp parallel reduction(min : i)#pragma omp parallel sections reduction(max : j) // expected-error {{argument of OpenMP clause 'reduction' must reference the same object in all threads}}  {    foo();  }#pragma omp parallel private(fl)#pragma omp parallel sections reduction(+ : fl)  {    foo();  }#pragma omp parallel reduction(* : fl)#pragma omp parallel sections reduction(+ : fl)  {    foo();  }  return tmain(argc) + tmain(fl); // expected-note {{in instantiation of function template specialization 'tmain<int>' requested here}} expected-note {{in instantiation of function template specialization 'tmain<float>' requested here}}}
开发者ID:FulcronZ,项目名称:NyuziToolchain,代码行数:101,


示例26: main

int main (int argc, char **argv) {#pragma omp parallel  foo(argc);  return tmain(argv);}
开发者ID:jamboree,项目名称:clang,代码行数:5,


示例27: main

int main(int argc, char *argv[]){    libbase::cputimer tmain("Main timer");    // Set up user parameters    po::options_description desc("Allowed options");    desc.add_options()("help", "print this help message");    desc.add_options()("system-file,i", po::value<std::string>(),                       "input file containing system description");    desc.add_options()("parameter,r", po::value<double>(),                       "simulation parameter");    desc.add_options()("seed,s", po::value<libbase::int32u>(),                       "system initialization seed (random if not stated)");    desc.add_options()("show-all,a", po::bool_switch(),                       "show all simulated frames (not just first error event)");    po::variables_map vm;    po::store(po::parse_command_line(argc, argv, desc), vm);    po::notify(vm);    // Validate user parameters    if (vm.count("help") || vm.count("system-file") == 0            || vm.count("parameter") == 0)    {        cout << desc << std::endl;        return 0;    }    // Interpret user parameters    const bool showall = vm["show-all"].as<bool> ();    // Simulation system & parameters    libcomm::experiment *system = createsystem(                                      vm["system-file"].as<std::string> ());    system->set_parameter(vm["parameter"].as<double> ());    // Initialise running values    system->reset();    if (vm.count("seed"))        seed_experiment(system, vm["seed"].as<libbase::int32u>());    else        seed_experiment(system);    cerr << "Simulating system at parameter = " << system->get_parameter()         << std::endl;    // Simulate, waiting for an error event    libbase::vector<double> result;    do    {        cerr << "Simulating sample " << system->get_samplecount() << std::endl;        system->sample(result);        system->accumulate(result);        if (showall)        {            cerr << "Event for sample " << system->get_samplecount() << ":"                 << std::endl;            display_event(system);        }    } while (result.min() == 0);    cerr << "Event found after " << system->get_samplecount() << " samples"         << std::endl;    // Display results if necessary    if (!showall)        display_event(system);    // Destroy what was created on the heap    delete system;    return 0;}
开发者ID:jbresearch,项目名称:simcommsys,代码行数:65,


示例28: main

int main (int argc, char **argv) {  int a[argc];#pragma omp parallel  foo(a[1]);  return tmain(argv);}
开发者ID:Leedehai,项目名称:clang,代码行数:6,


示例29: Java_com_example_testthreadpoolexecutor_MainActivity_jni

JNIEXPORT void JNICALLJava_com_example_testthreadpoolexecutor_MainActivity_jni(JNIEnv *e, jobject o){	extern int tmain();	tmain();}
开发者ID:JobsSteve,项目名称:cppThreadPoolExecutor,代码行数:6,


示例30: main

int main(int argc, char **argv) {#pragma omp flush  ;#pragma omp flush untied  // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp flush'}}#pragma omp flush unknown // expected-warning {{extra tokens at the end of '#pragma omp flush' are ignored}}  if (argc)#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    if (argc) {#pragma omp flush    }  while (argc)#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    while (argc) {#pragma omp flush    }  do#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    while (argc)      ;  do {#pragma omp flush  } while (argc);  switch (argc)#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    switch (argc)    case 1:#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}  switch (argc)  case 1: {#pragma omp flush  }  switch (argc) {#pragma omp flush  case 1:#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    break;  default: {#pragma omp flush  } break;  }  for (;;)#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}    for (;;) {#pragma omp flush    }label:#pragma omp flush // expected-error {{'#pragma omp flush' cannot be an immediate substatement}}label1 : {#pragma omp flush}#pragma omp flush#pragma omp flush(                              // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}#pragma omp flush()                             // expected-error {{expected expression}}#pragma omp flush(argc                          // expected-error {{expected ')'}} expected-note {{to match this '('}}#pragma omp flush(argc,                         // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}#pragma omp flush(argc)#pragma omp flush(S1) // expected-error {{'S1' does not refer to a value}}#pragma omp flush(argc) flush(argc) // expected-warning {{extra tokens at the end of '#pragma omp flush' are ignored}}#pragma omp parallel flush(argc) // expected-warning {{extra tokens at the end of '#pragma omp parallel' are ignored}}  ;  return tmain(argc);}
开发者ID:Blizzard,项目名称:clang,代码行数:63,



注:本文中的tmain函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ tmalloc函数代码示例
C++ tm函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。