summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/label1.C
blob: 95fd644e28ae03ebcb197de83adad0969219ada0 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "" }

int main(void) {
  static const void* lbls[2][2] = {{&&lbl0, &&lbl0}, {&&lbl0, &&lbl0}};
  goto *lbls[0][0];
  goto *lbls[0][0][0];		// { dg-message "" }
  goto *lbls[0];		// { dg-error "" }
 lbl0:
  ;
}