summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/elab1.C
blob: 5588651dfe5fef4152fe6ca9423b0fbebed92df8 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
typedef struct {} S; // { dg-error "" } Previous declaration of S

S s1;
struct S* s2; // { dg-error "" } S is a typedef name

template <class T>
struct X {
  friend class T; // { dg-error "" } T is a template type parameter
};