Skip to content

Commit cd47a30

Browse files
author
Chandra Ghale
committed
address review comment, removed whitespaces
1 parent 2738163 commit cd47a30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/test/OpenMP/target_default_ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void foo() {
4343
void fun(){
4444
int a = 0;
4545
int x = 10;
46-
#pragma omp target data default(firstprivate) map(a)
46+
#pragma omp target data default(firstprivate) map(a)
4747
{
4848
// DUMP: -OMPTargetDataDirective
4949
// DUMP-NEXT: -OMPDefaultClause

clang/test/OpenMP/target_default_messages.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ static int x = 0;
1414

1515
int main(int argc, char **argv) {
1616
#ifdef OMP60
17-
#pragma omp target default // expected-error {{expected '(' after 'default'}}
17+
#pragma omp target default // expected-error {{expected '(' after 'default'}}
1818
for (int i=0; i<200; i++) foo();
1919
#pragma omp target default( // expected-error {{expected 'none', 'shared', 'private' or 'firstprivate' in OpenMP clause 'default'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
2020
for (int i=0; i<200; i++) foo();
21-
#pragma omp target default() // expected-error {{expected 'none', 'shared', 'private' or 'firstprivate' in OpenMP clause 'default'}}
21+
#pragma omp target default() // expected-error {{expected 'none', 'shared', 'private' or 'firstprivate' in OpenMP clause 'default'}}
2222
for (int i=0; i<200; i++) foo();
23-
#pragma omp target default (none // expected-error {{expected ')'}} expected-note {{to match this '('}}
23+
#pragma omp target default (none // expected-error {{expected ')'}} expected-note {{to match this '('}}
2424
for (int i=0; i<200; i++) foo();
2525
#pragma omp target default(x) // expected-error {{expected 'none', 'shared', 'private' or 'firstprivate' in OpenMP clause 'default'}}
2626
for (int i=0; i<200; i++) foo();
2727
#endif
2828

2929
#ifdef OMP52
30-
#pragma omp target default(firstprivate) // expected-error {{unexpected OpenMP clause 'default' in directive '#pragma omp target'}}
30+
#pragma omp target default(firstprivate) // expected-error {{unexpected OpenMP clause 'default' in directive '#pragma omp target'}}
3131
for (int i = 0; i < 200; i++) {
3232
++x;
3333
++y;

0 commit comments

Comments
 (0)