FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / typeck1.C
blobf0ee77349623b5cf532512036ea2dc40e4d2c826
1 // Build don't link: 
2 // GROUPS passed typeck
3 // typeck file
4 // From: vern@daffy.ee.lbl.gov (Vern Paxson)
5 // Date:     24 Sep 1992 23:11:22 GMT
6 // Subject:  2.2.2 type-checking error (?) when comparing pointers
7 // Message-ID: <26475@dog.ee.lbl.gov>
10         class a { };
11         class foo : a { };
12         class bar : a { };
14         int test( const foo* f, const bar* b )
15                 {
16                 return f == b;// ERROR - 
17                 }