repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
offsetof2.C
blob
647cf8d0b77c5dd38c90c38464db387986f987c7
1
// PR c++/85662
2
// { dg-do compile { target c++11 } }
3
4
struct S { unsigned long x[31]; };
5
struct T { bool b; S f; };
6
static_assert (__builtin_offsetof (T, f.x[31 - 1]) == __builtin_offsetof (T, f.x[30]), "");