aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/noreturn-3.C
blob: 828935c12eeb8747cb4b950ab5bd16eab79a38cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// { dg-options "-Wall" }

// Origin: stip@mathematik.uni-ulm.de
//	   Andrew Pinski <pinskia@gcc.gnu.org>

// PR c++/13106: No return warning when return type is a dependent type.

template <typename T> T dummy() { }

int main() { 
    dummy<void>(); 
}