summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/cvt17.C
blob: 7567da2ebf104ede40ebbc763627bbb3ce3d1e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// GROUPS passed conversions
// cvt file
// Message-Id: <9305210124.AA02409@kato.cs.brown.edu>
// From: pcm@cs.brown.edu (Peter C. McCluskey)
// Subject: illegal code compiles silently
// Date: Thu, 20 May 93 21:24:22 -0400



class Point {};
class Line_Segment{ public: Line_Segment(const Point&){} };
class Node { public: Point Location(){ Point p; return p; } };

int main()
{
   Node** node1;
   Line_Segment(node1->Location()); // intended (*node1)// { dg-error "" } .*
}