[cfe-commits] r160455 - /cfe/trunk/test/PCH/cxx-typeid.cpp

Richard Smith richard at metafoo.co.uk
Wed Jul 18 15:07:16 PDT 2012


On Wed, Jul 18, 2012 at 2:56 PM, Aaron Ballman <aaron at aaronballman.com>wrote:

> Author: aaronballman
> Date: Wed Jul 18 16:56:43 2012
> New Revision: 160455
>
> URL: http://llvm.org/viewvc/llvm-project?rev=160455&view=rev
> Log:
> Fixing up a test case that was failing due to the lack of -std=c++11
>

What was the failure? This testcase doesn't seem to have anything to do
with C++11, and had been unchanged for ~2 years.


>
> Modified:
>     cfe/trunk/test/PCH/cxx-typeid.cpp
>
> Modified: cfe/trunk/test/PCH/cxx-typeid.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/cxx-typeid.cpp?rev=160455&r1=160454&r2=160455&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/PCH/cxx-typeid.cpp (original)
> +++ cfe/trunk/test/PCH/cxx-typeid.cpp Wed Jul 18 16:56:43 2012
> @@ -1,8 +1,8 @@
>  // Test this without pch.
> -// RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -Xclang -verify %s
> +// RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -std=c++11 -Xclang
> -verify %s
>
> -// RUN: %clang -ccc-pch-is-pch -x c++-header -o %t.gch %S/cxx-typeid.h
> -// RUN: %clang -ccc-pch-is-pch -include %t -fsyntax-only -Xclang -verify
> %s
> +// RUN: %clang -ccc-pch-is-pch -std=c++11 -x c++-header -o %t.gch
> %S/cxx-typeid.h
> +// RUN: %clang -ccc-pch-is-pch -std=c++11 -include %t -fsyntax-only
> -Xclang -verify %s
>
>  void f() {
>      (void)typeid(int);
>
>
> _______________________________________________
> 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/20120718/2547bfd6/attachment.html>


More information about the cfe-commits mailing list