Mercurial > hg > CbC > CbC_llvm
comparison clang/test/AST/ast-dump-openmp-declare-variant-extensions-messages.c @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
172:9fbae9c8bf63 | 173:0572611fdcc8 |
---|---|
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s | |
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify %s -x c++ | |
3 | |
4 int dummy() { return 1; } | |
5 | |
6 #pragma omp declare variant(dummy) match(implementation={extension(match_any,match_all)}, device={kind(cpu, gpu)}) // expected-error {{only a single match extension allowed per OpenMP context selector}} expected-note {{the previous context property 'match_any' used here}} // expected-note {{the ignored property spans until here}} | |
7 int base1() { return 2; } | |
8 | |
9 #pragma omp declare variant(dummy) match(implementation={extension(match_none,match_none)}, device={kind(gpu, fpga)}) // expected-warning {{the context property 'match_none' was used already in the same 'omp declare variant' directive; property ignored}} expected-note {{the previous context property 'match_none' used here}} expected-note {{the ignored property spans until here}} | |
10 int base2() { return 3; } | |
11 | |
12 #pragma omp declare variant(dummy) match(implementation={vendor(pgi), extension(match_none,match_any)}, device={kind(cpu, gpu)}) // expected-error {{only a single match extension allowed per OpenMP context selector}} expected-note {{the previous context property 'match_none' used here}} // expected-note {{the ignored property spans until here}} | |
13 int base3() { return 4; } | |
14 | |
15 | |
16 int test() { | |
17 return base1() + base2() + base3(); | |
18 } |