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 target/84272
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr84272.C
blob
ad4b8a29cd7d0ae8d756f3ecac1428b3bb7ae40b
1
// PR target/84272
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
// { dg-additional-options "-march=armv8-a -mtune=cortex-a57" { target aarch64-*-* } }
5
6
struct A
7
{
8
float b, c;
9
A ();
10
A (float, float, float);
11
float operator * (A)
12
{
13
float d = b * b + c * c;
14
return d;
15
}
16
};
17
18
void
19
foo ()
20
{
21
A g[1];
22
A h (0, 0, h * g[2]);
23
}