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
[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
array41.C
blob
e8ee18116a81d2549048a6c676436f0ca89757db
1
// PR c++/70690
2
// { dg-do run }
3
4
struct A {
5
A() {}
6
};
7
8
struct APadded : public A {
9
char pad[63];
10
};
11
12
int f();
13
int i = f();
14
APadded cache[50];
15
APadded *p = cache;
16
17
int f()
18
{
19
cache[0].pad[0] = 42;
20
return 1;
21
}
22
23
int main()
24
{
25
if (cache[0].pad[0] != 42)
26
__builtin_abort();
27
}