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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr71643.C
blob
8369c6862ab9dcba652d169ba874ad568fc63c6c
1
// PR tree-optimization/71643
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct A
6
{
7
void *operator new (__SIZE_TYPE__, double);
8
void operator delete (void *, double) { __builtin_unreachable (); }
9
A (int x);
10
static A *bar (int x) { return new (3.0) A (x); }
11
};
12
void baz (A *, A *);
13
14
void
15
foo (int a, int b)
16
{
17
A *p = A::bar (a);
18
A *q = A::bar (b);
19
baz (p, q);
20
}