mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 15:11:15 +08:00
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:
parent
fbb0add7c6
commit
1d5b9dd5c6
@ -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.
|
||||
|
||||
|
13
gcc/testsuite/g++.dg/lto/pr82414_0.C
Normal file
13
gcc/testsuite/g++.dg/lto/pr82414_0.C
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user