• Home
  • Raw
  • Download

Lines Matching +full:max +full:- +full:parallel

1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s
2 // RUN: %clang_cc1 -verify -fopenmp -std=c++98 -ferror-limit 150 -o - %s
3 // RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ferror-limit 150 -o - %s
12 struct S1; // expected-note {{declared here}} expected-note 4 {{forward declaration of 'S1'}}
16 …S2 &operator+(const S2 &arg) { return (*this); } // expected-note 3 {{implicitly declared private … in operator +()
21 static float S2s; // expected-note 2 {{static data member is predetermined as shared}}
24 const float S2::S2sc = 0; // expected-note 2 {{'S2sc' defined here}}
25 S2 b; // expected-note 3 {{'b' defined here}}
26 const S2 ba[5]; // expected-note 2 {{'ba' defined here}}
37 S3 c; // expected-note 3 {{'c' defined here}}
38 const S3 ca[5]; // expected-note 2 {{'ca' defined here}}
39 extern const int f; // expected-note 4 {{'f' declared here}}
42 S4(); // expected-note {{implicitly declared private here}}
52 S5() : a(0) {} // expected-note {{implicitly declared private here}} in S5()
59 class S6 { // expected-note 3 {{candidate function (the implicit copy assignment operator) not viab…
61 // expected-note@-2 3 {{candidate function (the implicit move assignment operator) not viable}}
71 #pragma omp threadprivate(h) // expected-note 2 {{defined as threadprivate or thread local}}
73 template <class T> // expected-note {{declared here}}
75 const T d = T(); // expected-note 4 {{'d' defined here}} in tmain()
76 const T da[5] = {T()}; // expected-note 2 {{'da' defined here}} in tmain()
79 T &j = i; // expected-note 4 {{'j' defined here}} in tmain()
80 S3 &p = k; // expected-note 2 {{'p' defined here}} in tmain()
81 const T &r = da[(int)i]; // expected-note 2 {{'r' defined here}} in tmain()
82 T &q = qa[(int)i]; // expected-note 2 {{'q' defined here}} in tmain()
84 #pragma omp parallel reduction // expected-error {{expected '(' after 'reduction'}} in tmain()
86 …a omp parallel reduction + // expected-error {{expected '(' after 'reduction'}} expected-warning {… in tmain()
88parallel reduction( // expected-error {{expected unqualified-id}} expected-warning {{missing ':' a… in tmain()
90parallel reduction(- // expected-warning {{missing ':' after reduction identifier - ignoring}} exp… in tmain()
92 #pragma omp parallel reduction() // expected-error {{expected unqualified-id}} expected-warning {{m… in tmain()
94 #pragma omp parallel reduction(*) // expected-warning {{missing ':' after reduction identifier - ig… in tmain()
96 #pragma omp parallel reduction(\) // expected-error {{expected unqualified-id}} expected-warning {{… in tmain()
98 #pragma omp parallel reduction(& : argc // expected-error {{expected ')'}} expected-note {{to match… in tmain()
100 …p parallel reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected… in tmain()
102 #pragma omp parallel reduction(|| : argc ? i : argc) // expected-error 2 {{expected variable name, … in tmain()
104parallel reduction(foo : argc) //expected-error {{incorrect reduction identifier, expected one of … in tmain()
106 #pragma omp parallel reduction(&& : argc) in tmain()
108 #pragma omp parallel reduction(^ : T) // expected-error {{'T' does not refer to a value}} in tmain()
110parallel reduction(+ : a, b, c, d, f) // expected-error {{a reduction list item with incomplete ty… in tmain()
112parallel reduction(min : a, b, c, d, f) // expected-error {{a reduction list item with incomplete … in tmain()
114 #pragma omp parallel reduction(max : h.b) // expected-error {{expected variable name, array element… in tmain()
116 #pragma omp parallel reduction(+ : ba) // expected-error {{const-qualified list item cannot be redu… in tmain()
118 #pragma omp parallel reduction(* : ca) // expected-error {{const-qualified list item cannot be redu… in tmain()
120 #pragma omp parallel reduction(- : da) // expected-error {{const-qualified list item cannot be redu… in tmain()
122 #pragma omp parallel reduction(^ : fl) // expected-error {{invalid operands to binary expression ('… in tmain()
124 #pragma omp parallel reduction(&& : S2::S2s) // expected-error {{shared variable cannot be reductio… in tmain()
126 #pragma omp parallel reduction(&& : S2::S2sc) // expected-error {{const-qualified list item cannot … in tmain()
128 #pragma omp parallel reduction(+ : h, k) // expected-error {{threadprivate or thread local variable… in tmain()
130 #pragma omp parallel reduction(+ : o) // expected-error 2 {{no viable overloaded '='}} in tmain()
132 #pragma omp parallel private(i), reduction(+ : j), reduction(+ : q) // expected-error 4 {{argument … in tmain()
134 #pragma omp parallel private(k) in tmain()
135 #pragma omp parallel reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP cl… in tmain()
137 …gma omp parallel reduction(+ : p), reduction(+ : p) // expected-error 2 {{variable can appear only… in tmain()
139 #pragma omp parallel reduction(+ : r) // expected-error 2 {{const-qualified list item cannot be red… in tmain()
141 #pragma omp parallel shared(i) in tmain()
142 #pragma omp parallel reduction(min : i) in tmain()
143 #pragma omp parallel reduction(max : j) // expected-error 2 {{argument of OpenMP clause 'reduction'… in tmain()
145 #pragma omp parallel in tmain()
148 #pragma omp parallel reduction(+ : fl) in tmain()
150 #pragma omp parallel in tmain()
151 #pragma omp for reduction(- : fl) in tmain()
153 #pragma omp parallel reduction(+ : fl) in tmain()
161 #pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}
168 const int d = 5; // expected-note 2 {{'d' defined here}} in main()
169 const int da[5] = {0}; // expected-note {{'da' defined here}} in main()
174 int &j = i; // expected-note 2 {{'j' defined here}} in main()
175 S3 &p = k; // expected-note 2 {{'p' defined here}} in main()
176 const int &r = da[i]; // expected-note {{'r' defined here}} in main()
177 int &q = qa[i]; // expected-note {{'q' defined here}} in main()
179 #pragma omp parallel reduction // expected-error {{expected '(' after 'reduction'}} in main()
181 …a omp parallel reduction + // expected-error {{expected '(' after 'reduction'}} expected-warning {… in main()
183parallel reduction( // expected-error {{expected unqualified-id}} expected-warning {{missing ':' a… in main()
185parallel reduction(- // expected-warning {{missing ':' after reduction identifier - ignoring}} exp… in main()
187 #pragma omp parallel reduction() // expected-error {{expected unqualified-id}} expected-warning {{m… in main()
189 #pragma omp parallel reduction(*) // expected-warning {{missing ':' after reduction identifier - ig… in main()
191 #pragma omp parallel reduction(\) // expected-error {{expected unqualified-id}} expected-warning {{… in main()
193parallel reduction(foo : argc // expected-error {{expected ')'}} expected-note {{to match this '('… in main()
195 #pragma omp parallel reduction(| : argc, // expected-error {{expected expression}} expected-error {… in main()
197 #pragma omp parallel reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected vari… in main()
199 #pragma omp parallel reduction(~ : argc) // expected-error {{expected unqualified-id}} in main()
201 #pragma omp parallel reduction(&& : argc) in main()
203 #pragma omp parallel reduction(^ : S1) // expected-error {{'S1' does not refer to a value}} in main()
205parallel reduction(+ : a, b, c, d, f) // expected-error {{a reduction list item with incomplete ty… in main()
207parallel reduction(min : a, b, c, d, f) // expected-error {{a reduction list item with incomplete … in main()
209 #pragma omp parallel reduction(max : h.b) // expected-error {{expected variable name, array element… in main()
211 #pragma omp parallel reduction(+ : ba) // expected-error {{const-qualified list item cannot be redu… in main()
213 #pragma omp parallel reduction(* : ca) // expected-error {{const-qualified list item cannot be redu… in main()
215 #pragma omp parallel reduction(- : da) // expected-error {{const-qualified list item cannot be redu… in main()
217 #pragma omp parallel reduction(^ : fl) // expected-error {{invalid operands to binary expression ('… in main()
219 #pragma omp parallel reduction(&& : S2::S2s) // expected-error {{shared variable cannot be reductio… in main()
221 #pragma omp parallel reduction(&& : S2::S2sc) // expected-error {{const-qualified list item cannot … in main()
223parallel reduction(& : e, g) // expected-error {{calling a private constructor of class 'S4'}} exp… in main()
225 #pragma omp parallel reduction(+ : h, k, B::x) // expected-error 2 {{threadprivate or thread local … in main()
227 #pragma omp parallel reduction(+ : o) // expected-error {{no viable overloaded '='}} in main()
229 #pragma omp parallel private(i), reduction(+ : j), reduction(+ : q) // expected-error 2 {{argument … in main()
231 #pragma omp parallel private(k) in main()
232 #pragma omp parallel reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP cl… in main()
234 …agma omp parallel reduction(+ : p), reduction(+ : p) // expected-error {{variable can appear only … in main()
236 #pragma omp parallel reduction(+ : r) // expected-error {{const-qualified list item cannot be reduc… in main()
238 #pragma omp parallel shared(i) in main()
239 #pragma omp parallel reduction(min : i) in main()
240 #pragma omp parallel reduction(max : j) // expected-error {{argument of OpenMP clause 'reduction' m… in main()
242 #pragma omp parallel in main()
245 #pragma omp parallel reduction(+ : fl) in main()
247 #pragma omp parallel in main()
248 #pragma omp for reduction(- : fl) in main()
250 #pragma omp parallel reduction(+ : fl) in main()
253 #pragma omp parallel reduction(+ : m) // OK in main()
256 …) + tmain(fl); // expected-note {{in instantiation of function template specialization 'tmain<int>… in main()