1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s
3 namespace BEFORE_AND_1
{
6 namespace AFTER_AND_2
{
7 void after_and_2(); // expected-note {{'AFTER_AND_2::after_and_2' declared here}} expected-note {{'AFTER_AND_2::after_and_2' declared here}}
10 void only_1(); // expected-note {{'ONLY_1::only_1' declared here}}
12 namespace BEFORE_1_AND_2
{
13 void before_1_and_2();
16 using BEFORE_1_AND_2::before_1_and_2
;
17 using BEFORE_AND_1::before_and_1
;
21 after_and_2(); // expected-error {{use of undeclared identifier 'after_and_2'; did you mean 'AFTER_AND_2::after_and_2'?}}
22 only_1(); // expected-error {{use of undeclared identifier 'only_1'; did you mean 'ONLY_1::only_1'?}}
26 #pragma omp begin declare variant match(implementation = {vendor(llvm)})
27 using BEFORE_1_AND_2::before_1_and_2
;
28 using BEFORE_AND_1::before_and_1
;
32 after_and_2(); // expected-error {{use of undeclared identifier 'after_and_2'; did you mean 'AFTER_AND_2::after_and_2'?}}
36 #pragma omp end declare variant
38 #pragma omp begin declare variant match(implementation = {vendor(llvm)})
39 using AFTER_AND_2::after_and_2
;
40 using BEFORE_1_AND_2::before_1_and_2
;
47 #pragma omp end declare variant
56 using AFTER_AND_2::after_and_2
;
59 // - we do not see the ast nodes for the gpu kind
60 // - we do not choke on the text in the kind(fpga) guarded scopes
61 // - we pick the right cbefore_1_and_2ees