summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/parse2.C
blob: 330b05fb0b20ec57ff9a91670527338029833950 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }

// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 24 Nov 2000 <nathan@codesourcery.com>

// Bug 531: We ICEd trying to give a parse error.

struct X
{
  bool operator (const X &) const;  // { dg-error "" } parse error
};