Commit 1d5b9dd5 by Jakub Jelinek Committed by Jakub Jelinek

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

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

From-SVN: r253660
parent fbb0add7
2017-10-11 Jakub Jelinek <jakub@redhat.com> 2017-10-11 Jakub Jelinek <jakub@redhat.com>
PR c++/82414
* g++.dg/lto/pr82414_0.C: New test.
PR c++/78523 PR c++/78523
* g++.dg/cpp1y/pr78523.C: New test. * g++.dg/cpp1y/pr78523.C: New test.
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment