OSDN Git Service

* lib/obj-c++.exp (obj-c++_target_compile): Declare global variable,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / cvt9.C
1 // { dg-do assemble  }
2 // { dg-options "-pedantic-errors" }
3 // GROUPS passed conversions
4 // cvt file
5 // Message-Id: <m0mVSRj-0000cEC@mobius.veritas.com>
6 // From: joe@veritas.com (Joe Fasano)
7 // Subject: gcc-2.2.2 bug report
8 // Date: Thu, 17 Sep 92 13:27 PDT
9
10 typedef int (*widget) ();
11
12 class window {
13 public:
14   int Isopen ();
15 };
16
17 widget fp = (widget) &window::Isopen;   // { dg-error "" } // ERROR -