annotate gcc/testsuite/gcc.dg/diag-aka-3.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
1 typedef unsigned int myvec __attribute__((vector_size (16)));
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
2
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
3 void f (float x)
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
4 {
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
5 myvec y = x; /* { dg-error {incompatible types when initializing type 'myvec' {aka '__vector\([48]\) unsigned int'} using type 'float'} } */
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
6 myvec *ptr = &x; /* { dg-error {initialization of 'myvec \*' {aka '__vector\([48]\) unsigned int \*'} from incompatible pointer type 'float \*'} } */
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
7 const myvec *const_ptr = &x; /* { dg-error {initialization of 'const myvec \*' {aka 'const __vector\([48]\) unsigned int \*'} from incompatible pointer type 'float \*'} } */
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
8 volatile myvec *volatile_ptr = &x; /* { dg-error {initialization of 'volatile myvec \*' {aka 'volatile __vector\([48]\) unsigned int \*'} from incompatible pointer type 'float \*'} } */
1830386684a0 gcc-9.2.0
anatofuz
parents:
diff changeset
9 }