// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s
namespace{// 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}}
voidbar();}// namespace
#pragma omp begin declare variant match(user = {condition(1)})
voidbar(){}#pragma omp end declare variant
// expected-warning@+1{{function 'baz' has internal linkage but is not defined}}
staticvoidbaz();#pragma omp begin declare variant match(device = {kind(nohost)})
staticvoidbaz(){}#pragma omp end declare variant
#pragma omp begin declare variant match(device = {kind(host)})
staticvoidfoo(){}#pragma omp end declare variant
intmain(){foo();// expected-note@+1{{used here}}
baz();// expected-note@+1{{used here}}
bar();return0;}