]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 23 Feb 2004 12:52:18 +0000 (12:52 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 23 Feb 2004 12:52:18 +0000 (12:52 +0000)
'gcc-3_3-branch'.

From-SVN: r78301

gcc/testsuite/g++.dg/other/switch1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/other/switch1.C b/gcc/testsuite/g++.dg/other/switch1.C
new file mode 100644 (file)
index 0000000..a22d2b5
--- /dev/null
@@ -0,0 +1,20 @@
+// { dg-do compile }
+// Contributed by: Nick Savoiu <savoiu at ics dot uci dot edu>
+// PR c++/14250: Incomplete type in switch statement
+
+template <typename T> 
+struct A {
+  operator int();
+};
+struct C1 { 
+  static A<void> t1; 
+  void fun() 
+  { 
+   switch(t1) 
+   { 
+    default: break; 
+   } 
+  } 
+};