From: No Author Date: Mon, 23 Feb 2004 12:52:18 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch X-Git-Tag: releases/gcc-3.3.4~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5828290a41a03629497f2e7a72d87b7c6effebc;p=thirdparty%2Fgcc.git This commit was manufactured by cvs2svn to create branch 'gcc-3_3-branch'. From-SVN: r78301 --- diff --git a/gcc/testsuite/g++.dg/other/switch1.C b/gcc/testsuite/g++.dg/other/switch1.C new file mode 100644 index 000000000000..a22d2b573faa --- /dev/null +++ b/gcc/testsuite/g++.dg/other/switch1.C @@ -0,0 +1,20 @@ +// { dg-do compile } +// Contributed by: Nick Savoiu +// PR c++/14250: Incomplete type in switch statement + +template +struct A { + operator int(); +}; + +struct C1 { + static A t1; + + void fun() + { + switch(t1) + { + default: break; + } + } +};