r194049 - Add a testcase from the recent bootstrap failure.
David Blaikie
dblaikie at gmail.com
Mon Nov 4 22:55:42 PST 2013
On Mon, Nov 4, 2013 at 10:44 PM, Rafael Espindola <
rafael.espindola at gmail.com> 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
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131104/e9a1fc57/attachment.html>
More information about the cfe-commits
mailing list