This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH,committed] Tweak testcase g++.dg/warn/noreturn-3.C


Hi

This patch tweaks the recently added noreturn-3.C testcase to test
no return warning during instantiation as suggested by Jason.
Applied to mainline.

--Kriang

2003-12-16  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* g++.dg/warn/noreturn-3.C: Also test instantiation.

diff -cprN gcc-main-save/gcc/testsuite/g++.dg/warn/noreturn-3.C gcc-main-new/gcc/testsuite/g++.dg/warn/noreturn-3.C
*** gcc-main-save/gcc/testsuite/g++.dg/warn/noreturn-3.C	Tue Dec 16 22:25:54 2003
--- gcc-main-new/gcc/testsuite/g++.dg/warn/noreturn-3.C	Tue Dec 16 22:15:01 2003
***************
*** 7,9 ****
--- 7,13 ----
  // PR c++/13106: No return warning when return type is a dependent type.
  
  template <typename T> T dummy() { }
+ 
+ int main() { 
+     dummy<void>(); 
+ }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]