aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/vector7.C
blob: cd259b1a2581407e887ab43c546aaee251a7ce30 (plain)
1
2
3
4
5
6
7
8
// { dg-options "" }
// { dg-do compile }
// PR C++/31721 and PR 14217
// the attribute vector_size would change a reference type into a pointer type which was wrong.

#define vector __attribute__((__vector_size__(16) ))
vector int b;
vector int &a = b;