of buildbots with:
error: 'error' diagnostics expected but not seen:
Line 9: too few elements in vector initialization (expected 8 elements, have 2)
1 warning and 1 error generated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101864
91177308-0d34-0410-b5e6-
96231b3b80d8
// OpenCL & AltiVec require all elements to be initialized.
if (numEltsInit != maxElements)
- if (SemaRef.getLangOptions().OpenCL)
+ if (SemaRef.getLangOptions().OpenCL || SemaRef.getLangOptions().AltiVec)
SemaRef.Diag(IList->getSourceRange().getBegin(),
diag::err_vector_incorrect_num_initializers)
<< (numEltsInit < maxElements) << maxElements << numEltsInit;
ifndef TESTARGS
ifdef VERBOSE
-TESTARGS = -v
+TESTARGS = -v -j16
else
-TESTARGS = -s -v
+TESTARGS = -s -v -j16
endif
endif
void f_a(vector int a);
void f_a2(int b, vector int a);
-vector int v = (vector int)(-1);
-
// These should have warnings.
__vector long vv_l; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
__vector signed long vv_sl; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
void f_a(vector int a);
void f_a2(int b, vector int a);
-vector int v = (vector int)(-1);
-
// These should have warnings.
__vector long vv_l; // expected-warning {{Use of 'long' with '__vector' is deprecated}}
__vector signed long vv_sl; // expected-warning {{Use of 'long' with '__vector' is deprecated}}