re PR middle-end/54649 (Go bootstrap failed)
authorDehao Chen <dehao@google.com>
Fri, 21 Sep 2012 17:01:36 +0000 (17:01 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Fri, 21 Sep 2012 17:01:36 +0000 (17:01 +0000)
2012-09-21  Dehao Chen  <dehao@google.com>

PR go/54649
PR tree-optimization/54655
* g++.dg/pr54655.C: New testcase.

From-SVN: r191615

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

index 3723d6b..5c412fd 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-21  Dehao Chen  <dehao@google.com>
+
+       PR go/54649
+       PR tree-optimization/54655
+       * g++.dg/pr54655.C: New testcase.
+
 2012-09-21  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/54647
diff --git a/gcc/testsuite/g++.dg/pr54655.C b/gcc/testsuite/g++.dg/pr54655.C
new file mode 100644 (file)
index 0000000..5fd5aee
--- /dev/null
@@ -0,0 +1,35 @@
+// { dg-do compile }
+/* { dg-options "-O1" }  */
+
+extern "C" class A
+{
+};
+
+template <typename T> class B:A
+{
+public:
+    B (int *, T);
+    ~B ()
+    {
+    }
+};
+
+bool a;
+
+inline void
+fn1 ()
+{
+  switch (0)
+  case 0:
+  {
+    B <int*> b (0, 0);
+    if (a)
+      break;
+  }
+}
+
+void
+fn2 ()
+{
+  fn1 ();
+}