Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr60114.c
bloba2db9c9480c8fa3cb473adc14b1525890c67f0a9
1 /* PR c/60114 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wconversion" } */
4 /* { dg-require-effective-target int32plus } */
6 struct S { int n, u[2]; };
7 const signed char z[] = {
8 [0] = 0x100, /* { dg-warning "9:overflow in implicit constant conversion" } */
9 [2] = 0x101, /* { dg-warning "9:overflow in implicit constant conversion" } */
11 int A[] = {
12 0, 0x80000000, /* { dg-warning "16:conversion of unsigned constant value to negative integer" } */
13 0xA, 0x80000000, /* { dg-warning "18:conversion of unsigned constant value to negative integer" } */
14 0xA, 0xA, 0x80000000 /* { dg-warning "23:conversion of unsigned constant value to negative integer" } */
16 int *p = (int []) { 0x80000000 }; /* { dg-warning "21:conversion of unsigned constant value to negative integer" } */
17 union { int k; } u = { .k = 0x80000000 }; /* { dg-warning "29:conversion of unsigned constant value to negative integer" } */
18 typedef int H[];
19 void
20 foo (void)
22 signed char a[][3] = { { 0x100, /* { dg-warning "28:overflow in implicit constant conversion" } */
23 1, 0x100 }, /* { dg-warning "24:overflow in implicit constant conversion" } */
24 { '\0', 0x100, '\0' } /* { dg-warning "27:overflow in implicit constant conversion" } */
26 (const signed char []) { 0x100 }; /* { dg-warning "28:overflow in implicit constant conversion" } */
27 (const float []) { 1e0, 1e1, 1e100 }; /* { dg-warning "32:conversion" } */
28 struct S s1 = { 0x80000000 }; /* { dg-warning "19:conversion of unsigned constant value to negative integer" } */
29 struct S s2 = { .n = 0x80000000 }; /* { dg-warning "24:conversion of unsigned constant value to negative integer" } */
30 struct S s3 = { .u[1] = 0x80000000 }; /* { dg-warning "27:conversion of unsigned constant value to negative integer" } */
31 H h = { 1, 2, 0x80000000 }; /* { dg-warning "17:conversion of unsigned constant value to negative integer" } */