summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/decl1.C
blob: 34b3b13f500fb88d86c7dcc6c589c07595b1433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
struct S {
  template <class T>
  int f(T), g(T); // { dg-error "" } more than one declarator
};

template <class T>
void x(T), y(T); // { dg-error "" } more than one declarator

template <class T>
struct S2 
{
  static int i, j; // OK.
};

template <class T>
int S2<T>::i, S2<T>::j; // { dg-error "" } more than one declarator

template <>
int S2<int>::i, S2<double>::i;  // { dg-error "" } more than one declarator