re PR c++/82414 (Issue with ODR/LTO in G++)

PR c++/82414
	* g++.dg/lto/pr82414_0.C: New test.

From-SVN: r253660
This commit is contained in:
Jakub Jelinek 2017-10-11 22:50:27 +02:00 committed by Jakub Jelinek
parent fbb0add7c6
commit 1d5b9dd5c6
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2017-10-11 Jakub Jelinek <jakub@redhat.com>
PR c++/82414
* g++.dg/lto/pr82414_0.C: New test.
PR c++/78523
* g++.dg/cpp1y/pr78523.C: New test.

View File

@ -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;
}