r352102 - Add a triple to this test so it passes for targets where alignof(double)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 24 15:44:31 PST 2019


Merged to 8.0 in r352132.

On Thu, Jan 24, 2019 at 12:52 PM Richard Smith via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
> Author: rsmith
> Date: Thu Jan 24 12:52:56 2019
> New Revision: 352102
>
> URL: http://llvm.org/viewvc/llvm-project?rev=352102&view=rev
> Log:
> Add a triple to this test so it passes for targets where alignof(double)
> really should be equal to alignof(float).
>
> Modified:
>     cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp
>
> Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp?rev=352102&r1=352101&r2=352102&view=diff
> ==============================================================================
> --- cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp (original)
> +++ cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp Thu Jan 24 12:52:56 2019
> @@ -1,4 +1,4 @@
> -// RUN: %clang_cc1 -std=c++11 -verify %s
> +// RUN: %clang_cc1 -std=c++11 -verify %s -triple x86_64-linux-gnu
>
>  alignas(double) void f(); // expected-error {{'alignas' attribute only applies to variables, data members and tag types}}
>  alignas(double) unsigned char c[sizeof(double)]; // expected-note {{previous}}
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list