int
main ()
{
- char a1[] = {one, 2, 3, 4};
- char a2[] = {1, 2*one, 3, 4};
+ char a1[] = {(char)one, 2, 3, 4};
+ char a2[] = {1, (char)(2*one), 3, 4};
int res = memcmp (a1, a2, 5 + one);
return res;
}
int
main ()
{
- volatile char a1[] = {one, 2, 3, 4};
- volatile char a2[] = {1, 2*one, 3, 4};
+ volatile char a1[] = {(char)one, 2, 3, 4};
+ volatile char a2[] = {1, (char)(2*one), 3, 4};
volatile int res = memcmp ((void *)a1,(void *)a2, 5 + one);
return 0;
}
#define vector __attribute__((vector_size(8*sizeof(short))))
int main (int argc, char *argv[]) {
- vector short v0 = {argc,2,3,4,5,6,7};
+ vector short v0 = {(short)argc,2,3,4,5,6,7};
vector short v1 = {2,2,2,2,2,2,2};
vector short r1,r2,r3,r4;
int i = 8;
struct S tests[] = {
{ { A, B }, { 0, 1 }, { A, B } },
- { { A, B }, { -16, -1 }, { A, B } },
+ { { A, B }, { -16U, -1U }, { A, B } },
{ { A, B }, { 1, 0 }, { B, A } },
{ { A, B }, { 0, 0 }, { A, A } },
{ { X, Y }, { 1, 1 }, { Y, Y } },
// { dg-do run }
+// { dg-options "-std=c++98" }
+
#include <vector>
#include <memory>