2019-10-09 01:47:52 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fopenmp -x c -std=c99 -ast-print %s -o - -Wno-openmp-clauses | FileCheck %s
|
2019-09-18 01:36:49 +08:00
|
|
|
|
2019-10-09 01:47:52 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fopenmp-simd -x c -std=c99 -ast-print %s -o - -Wno-openmp-clauses | FileCheck %s
|
2019-09-18 01:36:49 +08:00
|
|
|
|
|
|
|
// expected-no-diagnostics
|
|
|
|
|
|
|
|
int foo(void);
|
|
|
|
|
2019-09-19 00:24:31 +08:00
|
|
|
#pragma omp declare variant(foo) match(xxx={}, yyy={ccc})
|
2019-09-18 01:36:49 +08:00
|
|
|
#pragma omp declare variant(foo) match(xxx={vvv})
|
2019-10-08 23:56:43 +08:00
|
|
|
#pragma omp declare variant(foo) match(implementation={vendor(llvm)})
|
2019-10-09 01:47:52 +08:00
|
|
|
#pragma omp declare variant(foo) match(implementation={vendor(llvm), xxx})
|
2019-09-26 03:43:37 +08:00
|
|
|
#pragma omp declare variant(foo) match(implementation={vendor(unknown)})
|
2019-10-10 23:15:26 +08:00
|
|
|
#pragma omp declare variant(foo) match(implementation={vendor(score(5): ibm, xxx, ibm)})
|
2019-09-18 01:36:49 +08:00
|
|
|
int bar(void);
|
|
|
|
|
|
|
|
// CHECK: int foo();
|
2019-10-09 03:44:16 +08:00
|
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(score(5):ibm, xxx)})
|
2019-09-26 03:43:37 +08:00
|
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(unknown)})
|
|
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(llvm)})
|
2019-10-09 01:47:52 +08:00
|
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(llvm)})
|
2019-09-18 01:36:49 +08:00
|
|
|
// CHECK-NEXT: int bar();
|