From: Jakub Jelinek Date: Wed, 11 Oct 2017 20:50:27 +0000 (+0200) Subject: re PR c++/82414 (Issue with ODR/LTO in G++) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d5b9dd5c6490cbca0437e1d919ae8d45c3d6297;p=gcc.git re PR c++/82414 (Issue with ODR/LTO in G++) PR c++/82414 * g++.dg/lto/pr82414_0.C: New test. From-SVN: r253660 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d08108323d..f1364730db8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2017-10-11 Jakub Jelinek + PR c++/82414 + * g++.dg/lto/pr82414_0.C: New test. + PR c++/78523 * g++.dg/cpp1y/pr78523.C: New test. diff --git a/gcc/testsuite/g++.dg/lto/pr82414_0.C b/gcc/testsuite/g++.dg/lto/pr82414_0.C new file mode 100644 index 00000000000..29753718b54 --- /dev/null +++ b/gcc/testsuite/g++.dg/lto/pr82414_0.C @@ -0,0 +1,13 @@ +// PR c++/82414 +// { dg-lto-do link } +// { dg-lto-options { { -flto -g } } } + +typedef __attribute__ ((__aligned__ (16))) struct S { __extension__ unsigned long long Part[2]; } T; // bogus warning "violates one definition rule" + +int +main () +{ + T tf; + asm volatile ("" : : "g" (__alignof__(tf)), "g" (__alignof__ (struct S)), "g" (__alignof__ (T))); + return 0; +}