Fortran: fix passing of optional dummy as actual to optional argument [PR55978]
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / typeck1.C
blob6572afcce5111c16c7f59763acffdf4478f50c6d
1 // { dg-do assemble  }
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;// { dg-error "26:comparison between distinct pointer types" } 
17                 }