aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr94726.c
blob: d6911a644a47d64d374c274c05721ca50db501ec (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2" } */
typedef unsigned int type __attribute__ ( ( vector_size ( 2*sizeof(int) ) ) ) ; 
type a , b; 
/* { dg-message "note: previous declaration" "previous declaration" { target *-*-* } .-1 } */
void foo ( void ) { 
	type var = { 2 , 2 } ; 
	b = __builtin_shuffle ( a , var ) ;
} 

void * a [ ] = { } ; /* { dg-error "conflicting types" } */