aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash32.C
blob: 98366c1e9104999216745c4f4bd144b3a76ec8aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Build don't link:
// Origin: Jakub Jelinek <jakub@redhat.com>

// excess errors test - XFAIL *-*-*

struct foo
{
  enum e
  {
    not				// ERROR - 
  };
  ~foo();
  void x (foo *&a, bool b = (unsigned char)0);
};

namespace N
{
  struct bar;

  template<class T>
  struct baz
  {
    baz(T *p);
  };

  typedef baz<bar> c;
}

struct z
{
  int a;
};