| // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s |
| // TODO this must be fixed. This warning shouldn't be generated. |
| // expected-warning@+1{{function '(anonymous namespace)::bar' has internal linkage but is not defined}} |
| #pragma omp begin declare variant match(user = {condition(1)}) |
| #pragma omp end declare variant |
| // expected-warning@+1{{function 'baz' has internal linkage but is not defined}} |
| #pragma omp begin declare variant match(device = {kind(nohost)}) |
| #pragma omp end declare variant |
| #pragma omp begin declare variant match(device = {kind(host)}) |
| #pragma omp end declare variant |
| // expected-note@+1{{used here}} |
| // expected-note@+1{{used here}} |