summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C
blob: e50e9eb7af6753b0ae810dcb47c4eaeb7c7997c4 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// GROUPS passed arm
int a, b;

// declaring an array of references should be illegal
int & v[ 2] = { a, b};  // { dg-error "7:declaration of .v. as array of references" }