193dc40ddSAlexey Bataev // RUN: %clang_cc1 -verify=expected,omp45 -fopenmp-version=45 -fopenmp %s -Wuninitialized
293dc40ddSAlexey Bataev // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp-version=50 -fopenmp %s -Wuninitialized
314a388f4SAlexey Bataev 
493dc40ddSAlexey Bataev // RUN: %clang_cc1 -verify=expected,omp45 -fopenmp-version=45 -fopenmp-simd %s -Wuninitialized
593dc40ddSAlexey Bataev // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp-version=50 -fopenmp-simd %s -Wuninitialized
614a388f4SAlexey Bataev 
714a388f4SAlexey Bataev typedef void **omp_allocator_handle_t;
8*8026394dSAlexey Bataev extern const omp_allocator_handle_t omp_null_allocator;
914a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_default_mem_alloc;
1014a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_large_cap_mem_alloc;
1114a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_const_mem_alloc;
1214a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_high_bw_mem_alloc;
1314a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_low_lat_mem_alloc;
1414a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_cgroup_mem_alloc;
1514a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_pteam_mem_alloc;
1614a388f4SAlexey Bataev extern const omp_allocator_handle_t omp_thread_mem_alloc;
1714a388f4SAlexey Bataev 
foo()1814a388f4SAlexey Bataev void foo() {
1914a388f4SAlexey Bataev }
2014a388f4SAlexey Bataev 
foobool(int argc)2114a388f4SAlexey Bataev bool foobool(int argc) {
2214a388f4SAlexey Bataev   return argc;
2314a388f4SAlexey Bataev }
2414a388f4SAlexey Bataev 
2514a388f4SAlexey Bataev struct S1; // expected-note 2 {{declared here}} expected-note 2 {{forward declaration of 'S1'}}
2614a388f4SAlexey Bataev extern S1 a;
2714a388f4SAlexey Bataev class S2 {
2814a388f4SAlexey Bataev   mutable int a;
2914a388f4SAlexey Bataev 
3014a388f4SAlexey Bataev public:
S2()3114a388f4SAlexey Bataev   S2() : a(0) {}
S2(S2 & s2)3214a388f4SAlexey Bataev   S2(S2 &s2) : a(s2.a) {}
3314a388f4SAlexey Bataev   const S2 &operator =(const S2&) const;
3414a388f4SAlexey Bataev   S2 &operator =(const S2&);
3514a388f4SAlexey Bataev   static float S2s; // expected-note {{static data member is predetermined as shared}}
3614a388f4SAlexey Bataev   static const float S2sc; // expected-note {{'S2sc' declared here}}
3714a388f4SAlexey Bataev };
3814a388f4SAlexey Bataev const float S2::S2sc = 0;
3914a388f4SAlexey Bataev const S2 b;
4014a388f4SAlexey Bataev const S2 ba[5];
4114a388f4SAlexey Bataev class S3 {
4214a388f4SAlexey Bataev   int a;
4314a388f4SAlexey Bataev   S3 &operator=(const S3 &s3); // expected-note 2 {{implicitly declared private here}}
4414a388f4SAlexey Bataev 
4514a388f4SAlexey Bataev public:
S3()4614a388f4SAlexey Bataev   S3() : a(0) {}
S3(S3 & s3)4714a388f4SAlexey Bataev   S3(S3 &s3) : a(s3.a) {}
4814a388f4SAlexey Bataev };
4914a388f4SAlexey Bataev const S3 c;         // expected-note {{'c' defined here}}
5014a388f4SAlexey Bataev const S3 ca[5];     // expected-note {{'ca' defined here}}
5114a388f4SAlexey Bataev extern const int f; // expected-note {{'f' declared here}}
5214a388f4SAlexey Bataev class S4 {
5314a388f4SAlexey Bataev   int a;
5414a388f4SAlexey Bataev   S4();             // expected-note 3 {{implicitly declared private here}}
5514a388f4SAlexey Bataev   S4(const S4 &s4);
5614a388f4SAlexey Bataev 
5714a388f4SAlexey Bataev public:
S4(int v)5814a388f4SAlexey Bataev   S4(int v) : a(v) {}
5914a388f4SAlexey Bataev };
6014a388f4SAlexey Bataev class S5 {
6114a388f4SAlexey Bataev   int a;
S5()6214a388f4SAlexey Bataev   S5() : a(0) {} // expected-note {{implicitly declared private here}}
6314a388f4SAlexey Bataev 
6414a388f4SAlexey Bataev public:
S5(const S5 & s5)6514a388f4SAlexey Bataev   S5(const S5 &s5) : a(s5.a) {}
S5(int v)6614a388f4SAlexey Bataev   S5(int v) : a(v) {}
6714a388f4SAlexey Bataev };
6814a388f4SAlexey Bataev class S6 {
6914a388f4SAlexey Bataev   int a;
S6()7014a388f4SAlexey Bataev   S6() : a(0) {}
7114a388f4SAlexey Bataev 
7214a388f4SAlexey Bataev public:
S6(const S6 & s6)7314a388f4SAlexey Bataev   S6(const S6 &s6) : a(s6.a) {}
S6(int v)7414a388f4SAlexey Bataev   S6(int v) : a(v) {}
7514a388f4SAlexey Bataev };
7614a388f4SAlexey Bataev 
7714a388f4SAlexey Bataev S3 h;
7814a388f4SAlexey Bataev #pragma omp threadprivate(h) // expected-note 2 {{defined as threadprivate or thread local}}
7914a388f4SAlexey Bataev 
8014a388f4SAlexey Bataev template <class I, class C>
foomain(int argc,char ** argv)8114a388f4SAlexey Bataev int foomain(int argc, char **argv) {
8214a388f4SAlexey Bataev   I e(4);
8314a388f4SAlexey Bataev   I g(5);
8414a388f4SAlexey Bataev   int i, z;
8514a388f4SAlexey Bataev   int &j = i;
8614a388f4SAlexey Bataev #pragma omp parallel
8714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate // expected-error {{expected '(' after 'lastprivate'}}
8814a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
8914a388f4SAlexey Bataev     ++k;
9014a388f4SAlexey Bataev #pragma omp parallel
9114a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
9214a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
9314a388f4SAlexey Bataev     ++k;
9414a388f4SAlexey Bataev #pragma omp parallel
9514a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate() // expected-error {{expected expression}}
9614a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
9714a388f4SAlexey Bataev     ++k;
9814a388f4SAlexey Bataev #pragma omp parallel
9914a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
10014a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
10114a388f4SAlexey Bataev     ++k;
10214a388f4SAlexey Bataev #pragma omp parallel
10314a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
10414a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
10514a388f4SAlexey Bataev     ++k;
10614a388f4SAlexey Bataev #pragma omp parallel
10714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}
10814a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
10914a388f4SAlexey Bataev     ++k;
11014a388f4SAlexey Bataev #pragma omp parallel
11114a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc) allocate , allocate(, allocate(omp_default , allocate(omp_default_mem_alloc, allocate(omp_default_mem_alloc:, allocate(omp_default_mem_alloc: argc, allocate(omp_default_mem_alloc: argv), allocate(argv) // expected-error {{expected '(' after 'allocate'}} expected-error 2 {{expected expression}} expected-error 2 {{expected ')'}} expected-error {{use of undeclared identifier 'omp_default'}} expected-note 2 {{to match this '('}}
11214a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
11314a388f4SAlexey Bataev     ++k;
11414a388f4SAlexey Bataev #pragma omp parallel
11593dc40ddSAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(conditional: argc) lastprivate(conditional: // expected-error 2 {{use of undeclared identifier 'conditional'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
11693dc40ddSAlexey Bataev   for (int k = 0; k < argc; ++k)
11793dc40ddSAlexey Bataev     ++k;
11893dc40ddSAlexey Bataev #pragma omp parallel
11914a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(S1) // expected-error {{'S1' does not refer to a value}}
12014a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
12114a388f4SAlexey Bataev     ++k;
12214a388f4SAlexey Bataev #pragma omp parallel
12314a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(a, b) // expected-error {{lastprivate variable with incomplete type 'S1'}}
12414a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
12514a388f4SAlexey Bataev     ++k;
12614a388f4SAlexey Bataev #pragma omp parallel
12714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argv[1]) // expected-error {{expected variable name}}
12814a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
12914a388f4SAlexey Bataev     ++k;
13014a388f4SAlexey Bataev #pragma omp parallel
13114a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(z, e, g) // expected-error 2 {{calling a private constructor of class 'S4'}}
13214a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
13314a388f4SAlexey Bataev     ++k;
13414a388f4SAlexey Bataev #pragma omp parallel
13514a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(h) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
13614a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
13714a388f4SAlexey Bataev     ++k;
13814a388f4SAlexey Bataev #pragma omp parallel
13914a388f4SAlexey Bataev   {
14014a388f4SAlexey Bataev     int v = 0;
14114a388f4SAlexey Bataev     int i;
14214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd allocate(omp_thread_mem_alloc: i) lastprivate(i) // expected-warning {{allocator with the 'thread' trait access has unspecified behavior on 'parallel master taskloop simd' directive}}
14314a388f4SAlexey Bataev     for (int k = 0; k < argc; ++k) {
14414a388f4SAlexey Bataev       i = k;
14514a388f4SAlexey Bataev       v += i;
14614a388f4SAlexey Bataev     }
14714a388f4SAlexey Bataev   }
14814a388f4SAlexey Bataev #pragma omp parallel shared(i)
14914a388f4SAlexey Bataev #pragma omp parallel private(i)
15014a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(j)
15114a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
15214a388f4SAlexey Bataev     ++k;
15314a388f4SAlexey Bataev #pragma omp parallel
15414a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(i)
15514a388f4SAlexey Bataev   for (int k = 0; k < argc; ++k)
15614a388f4SAlexey Bataev     ++k;
15714a388f4SAlexey Bataev   return 0;
15814a388f4SAlexey Bataev }
15914a388f4SAlexey Bataev 
bar(S4 a[2])16014a388f4SAlexey Bataev void bar(S4 a[2]) {
16114a388f4SAlexey Bataev #pragma omp parallel
16214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(a)
16314a388f4SAlexey Bataev   for (int i = 0; i < 2; ++i)
16414a388f4SAlexey Bataev     foo();
16514a388f4SAlexey Bataev }
16614a388f4SAlexey Bataev 
16714a388f4SAlexey Bataev namespace A {
16814a388f4SAlexey Bataev double x;
16914a388f4SAlexey Bataev #pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}
17014a388f4SAlexey Bataev }
17114a388f4SAlexey Bataev namespace B {
17214a388f4SAlexey Bataev using A::x;
17314a388f4SAlexey Bataev }
17414a388f4SAlexey Bataev 
main(int argc,char ** argv)17514a388f4SAlexey Bataev int main(int argc, char **argv) {
17614a388f4SAlexey Bataev   const int d = 5;       // expected-note {{'d' defined here}}
17714a388f4SAlexey Bataev   const int da[5] = {0}; // expected-note {{'da' defined here}}
17814a388f4SAlexey Bataev   S4 e(4);
17914a388f4SAlexey Bataev   S5 g(5);
18014a388f4SAlexey Bataev   S3 m;
18114a388f4SAlexey Bataev   S6 n(2);
18214a388f4SAlexey Bataev   int i, z;
18314a388f4SAlexey Bataev   int &j = i;
18414a388f4SAlexey Bataev #pragma omp parallel
18514a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate // expected-error {{expected '(' after 'lastprivate'}}
18614a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
18714a388f4SAlexey Bataev     foo();
18814a388f4SAlexey Bataev #pragma omp parallel
18914a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
19014a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
19114a388f4SAlexey Bataev     foo();
19214a388f4SAlexey Bataev #pragma omp parallel
19314a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate() // expected-error {{expected expression}}
19414a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
19514a388f4SAlexey Bataev     foo();
19614a388f4SAlexey Bataev #pragma omp parallel
19714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
19814a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
19914a388f4SAlexey Bataev     foo();
20014a388f4SAlexey Bataev #pragma omp parallel
20114a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
20214a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
20314a388f4SAlexey Bataev     foo();
20414a388f4SAlexey Bataev #pragma omp parallel
20514a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}
20614a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
20714a388f4SAlexey Bataev     foo();
20814a388f4SAlexey Bataev #pragma omp parallel
20914a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argc, z)
21014a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
21114a388f4SAlexey Bataev     foo();
21214a388f4SAlexey Bataev #pragma omp parallel
21314a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(S1) // expected-error {{'S1' does not refer to a value}}
21414a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
21514a388f4SAlexey Bataev     foo();
21614a388f4SAlexey Bataev #pragma omp parallel
21714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(a, b, c, d, f) // expected-error {{lastprivate variable with incomplete type 'S1'}} expected-error 1 {{const-qualified variable without mutable fields cannot be lastprivate}} expected-error 2 {{const-qualified variable cannot be lastprivate}}
21814a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
21914a388f4SAlexey Bataev     foo();
22014a388f4SAlexey Bataev #pragma omp parallel
22114a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(argv[1]) // expected-error {{expected variable name}}
22214a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
22314a388f4SAlexey Bataev     foo();
22414a388f4SAlexey Bataev #pragma omp parallel
22514a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(2 * 2) // expected-error {{expected variable name}}
22614a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
22714a388f4SAlexey Bataev     foo();
22814a388f4SAlexey Bataev #pragma omp parallel
22914a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(ba)
23014a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
23114a388f4SAlexey Bataev     foo();
23214a388f4SAlexey Bataev #pragma omp parallel
23314a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(ca) // expected-error {{const-qualified variable without mutable fields cannot be lastprivate}}
23414a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
23514a388f4SAlexey Bataev     foo();
23614a388f4SAlexey Bataev #pragma omp parallel
23714a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(da) // expected-error {{const-qualified variable cannot be lastprivate}}
23814a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
23914a388f4SAlexey Bataev     foo();
24014a388f4SAlexey Bataev   int xa;
24114a388f4SAlexey Bataev #pragma omp parallel
24214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(xa) // OK
24314a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
24414a388f4SAlexey Bataev     foo();
24514a388f4SAlexey Bataev #pragma omp parallel
24614a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(S2::S2s) // expected-error {{shared variable cannot be lastprivate}}
24714a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
24814a388f4SAlexey Bataev     foo();
24914a388f4SAlexey Bataev #pragma omp parallel
25014a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(S2::S2sc) // expected-error {{const-qualified variable cannot be lastprivate}}
25114a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
25214a388f4SAlexey Bataev     foo();
25314a388f4SAlexey Bataev #pragma omp parallel
25414a388f4SAlexey Bataev #pragma omp parallel master taskloop simd safelen(5)
25514a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
25614a388f4SAlexey Bataev     foo();
25714a388f4SAlexey Bataev #pragma omp parallel
25814a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}}
25914a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
26014a388f4SAlexey Bataev     foo();
26114a388f4SAlexey Bataev #pragma omp parallel
26214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(m) // expected-error {{'operator=' is a private member of 'S3'}}
26314a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
26414a388f4SAlexey Bataev     foo();
26514a388f4SAlexey Bataev #pragma omp parallel
26614a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(h) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
26714a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
26814a388f4SAlexey Bataev     foo();
26914a388f4SAlexey Bataev #pragma omp parallel
27014a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(B::x) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
27114a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
27214a388f4SAlexey Bataev     foo();
27314a388f4SAlexey Bataev #pragma omp parallel
27414a388f4SAlexey Bataev #pragma omp parallel master taskloop simd private(xa), lastprivate(xa) // expected-error {{private variable cannot be lastprivate}} expected-note {{defined as private}}
27514a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
27614a388f4SAlexey Bataev     foo();
27714a388f4SAlexey Bataev #pragma omp parallel
27814a388f4SAlexey Bataev #pragma omp parallel master taskloop simd linear(i)
27914a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
28014a388f4SAlexey Bataev     foo();
28114a388f4SAlexey Bataev #pragma omp parallel private(xa)
28214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(xa)
28314a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
28414a388f4SAlexey Bataev     foo();
28514a388f4SAlexey Bataev #pragma omp parallel reduction(+ : xa)
28614a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(xa)
28714a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
28814a388f4SAlexey Bataev     foo();
28914a388f4SAlexey Bataev #pragma omp parallel
29014a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(j)
29114a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
29214a388f4SAlexey Bataev     foo();
29314a388f4SAlexey Bataev #pragma omp parallel
29414a388f4SAlexey Bataev #pragma omp parallel master taskloop simd firstprivate(m) lastprivate(m) // expected-error {{'operator=' is a private member of 'S3'}}
29514a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
29614a388f4SAlexey Bataev     foo();
29714a388f4SAlexey Bataev #pragma omp parallel
29814a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(n) firstprivate(n) // OK
29914a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
30014a388f4SAlexey Bataev     foo();
30114a388f4SAlexey Bataev   static int si;
30214a388f4SAlexey Bataev #pragma omp parallel master taskloop simd lastprivate(si) // OK
30314a388f4SAlexey Bataev   for (i = 0; i < argc; ++i)
30414a388f4SAlexey Bataev     si = i + 1;
30514a388f4SAlexey Bataev   return foomain<S4, S5>(argc, argv); // expected-note {{in instantiation of function template specialization 'foomain<S4, S5>' requested here}}
30614a388f4SAlexey Bataev }
307