2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / warn / noreturn-3.C
blob828935c12eeb8747cb4b950ab5bd16eab79a38cf
1 // { dg-do compile }
2 // { dg-options "-Wall" }
4 // Origin: stip@mathematik.uni-ulm.de
5 //         Andrew Pinski <pinskia@gcc.gnu.org>
7 // PR c++/13106: No return warning when return type is a dependent type.
9 template <typename T> T dummy() { }
11 int main() { 
12     dummy<void>();