• Home
  • Raw
  • Download

Lines Matching +full:2 +full:- +full:clause

1 // RUN: %clang_cc1 -verify -fopenmp %s
10 struct S1; // expected-note {{declared here}}
12 template <class T, typename S, int N, int ST> // expected-note {{declared here}}
13 T tmain(T argc, S **argv) { //expected-note 2 {{declared here}} in tmain()
14 #pragma omp distribute collapse // expected-error {{expected '(' after 'collapse'}} in tmain()
15 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
16 …ma omp distribute collapse ( // expected-error {{expected expression}} expected-error {{expected '… in tmain()
17 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
18 #pragma omp distribute collapse () // expected-error {{expected expression}} in tmain()
19 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
20 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in tmain()
21 // expected-error@+2 2 {{expression is not an integral constant expression}} in tmain()
22 …// expected-note@+1 2 {{read of non-const variable 'argc' is not allowed in a constant expression}} in tmain()
24 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
25 // expected-error@+1 2 {{argument to 'collapse' clause must be a strictly positive integer value}} in tmain()
26 …#pragma omp distribute collapse (ST // expected-error {{expected ')'}} expected-note {{to match th… in tmain()
27 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
28 …#pragma omp distribute collapse (1)) // expected-warning {{extra tokens at the end of '#pragma omp… in tmain()
29 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
30 …ma omp distribute collapse ((ST > 0) ? 1 + ST : 2) // expected-note 2 {{as specified in 'collapse'… in tmain()
31 …or (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; // expected-error 2 {{expecte… in tmain()
32 …// expected-error@+3 2 {{directive '#pragma omp distribute' cannot contain more than one 'collapse… in tmain()
33 // expected-error@+2 2 {{argument to 'collapse' clause must be a strictly positive integer value}} in tmain()
34 // expected-error@+1 2 {{expression is not an integral constant expression}} in tmain()
35 #pragma omp distribute collapse (foobool(argc)), collapse (true), collapse (-5) in tmain()
36 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
37 #pragma omp distribute collapse (S) // expected-error {{'S' does not refer to a value}} in tmain()
38 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
39 // expected-error@+1 2 {{expression is not an integral constant expression}} in tmain()
40 …#pragma omp distribute collapse (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to … in tmain()
41 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
43 for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
44 …#pragma omp distribute collapse (N) // expected-error {{argument to 'collapse' clause must be a st… in tmain()
45 for (T i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; in tmain()
46 #pragma omp distribute collapse (2) // expected-note {{as specified in 'collapse' clause}} in tmain()
47 foo(); // expected-error {{expected 2 for loops after '#pragma omp distribute'}} in tmain()
52 #pragma omp distribute collapse // expected-error {{expected '(' after 'collapse'}} in main()
53 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
54 …ma omp distribute collapse ( // expected-error {{expected expression}} expected-error {{expected '… in main()
55 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
56 #pragma omp distribute collapse () // expected-error {{expected expression}} in main()
57 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
58 …ollapse (4 // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-note {{… in main()
59 …for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; // expected-error {{expected … in main()
60 …se (2+2)) // expected-warning {{extra tokens at the end of '#pragma omp distribute' are ignored}} … in main()
61 …for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; // expected-error {{expected … in main()
62 …#pragma omp distribute collapse (foobool(1) > 0 ? 1 : 2) // expected-error {{expression is not an … in main()
63 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
64 // expected-error@+3 {{expression is not an integral constant expression}} in main()
65 …// expected-error@+2 2 {{directive '#pragma omp distribute' cannot contain more than one 'collapse… in main()
66 // expected-error@+1 2 {{argument to 'collapse' clause must be a strictly positive integer value}} in main()
67 #pragma omp distribute collapse (foobool(argc)), collapse (true), collapse (-5) in main()
68 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
69 #pragma omp distribute collapse (S1) // expected-error {{'S1' does not refer to a value}} in main()
70 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
71 // expected-error@+1 {{expression is not an integral constant expression}} in main()
72 …#pragma omp distribute collapse (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to … in main()
73 for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; in main()
74 // expected-error@+3 {{statement after '#pragma omp distribute' must be a for loop}} in main()
75 …// expected-note@+1 {{in instantiation of function template specialization 'tmain<int, char, -1, -… in main()
76 …bute collapse(collapse(tmain<int, char, -1, -2>(argc, argv) // expected-error 2 {{expected ')'}} e… in main()
78 #pragma omp distribute collapse (2) // expected-note {{as specified in 'collapse' clause}} in main()
79 foo(); // expected-error {{expected 2 for loops after '#pragma omp distribute'}} in main()
80 …// expected-note@+1 {{in instantiation of function template specialization 'tmain<int, char, 1, 0>… in main()