On Mon, Nov 4, 2013 at 10:44 PM, Rafael Espindola <
[email protected]> wrote:

> Author: rafael
> Date: Tue Nov  5 00:44:57 2013
> New Revision: 194049
>
> URL: http://llvm.org/viewvc/llvm-project?rev=194049&view=rev
> Log:
> Add a testcase from the recent bootstrap failure.
>
> Modified:
>     cfe/trunk/test/CodeGenCXX/destructors.cpp
>
> Modified: cfe/trunk/test/CodeGenCXX/destructors.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/destructors.cpp?rev=194049&r1=194048&r2=194049&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/destructors.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/destructors.cpp Tue Nov  5 00:44:57 2013
> @@ -364,6 +364,19 @@ namespace test9 {
>    // CHECK: call void @_ZN5test92f2Ev()
>  }
>
> +namespace test10 {
> +  // Test that we don't crash.
>

Tests that test that we simply don't crash seem inadequate - could we test
that we have the correct behavior rather than just "don't crash" (probably
an IRGen test)?


> +  struct Option {
> +    virtual ~Option() {}
> +  };
> +  template <class DataType> class opt : public Option {};
> +  template class opt<int>;
> +  bool handleOccurrence() {
> +    Option x;
> +    return true;
> +  }
> +}
> +
>  // Checks from test3:
>
>    // CHECK-LABEL: define internal void
> @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::<anonymous namespace>::D"*
> %this) unnamed_addr
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to