summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/decl2.C
blob: a466a207a2f769448f5082c88e943b516bb1bd17 (plain)
1
2
3
4
5
6
7
// { dg-do assemble  }
// Based on a testcase by Maciej Radziejewski <maciejr@iws.uni-stuttgart.de>

int i(0)(1); // { dg-error "" } multiple initialization
int j(2) = 3; // { dg-error "" } multiple initialization
int k(4)(5)(6); // { dg-error "" } multiple initialization
int m, n(7)(8); // { dg-error "" } multiple initialization