2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / typeof4.C
blob2f4237035147dc989e30b86c939b0c6192ac6d34
1 // { dg-do compile }
2 // { dg-options "" }
4 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
6 // PR c++/9459: typeof in return type of template function
8 void foo (int) {}
9 void foo (double) {}
11 template <typename C>
12 typeof(foo(1))
13 bar () { return foo(1); }