* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / init / pr35878_3.C
blob9317ea1b231a2777b9d852098170ef9504270ca6
1 // PR c++/35878
2 // { dg-do compile }
3 // { dg-options "-O2 -std=gnu++17 -fdump-tree-optimized" }
4 // { dg-final { scan-tree-dump-not "v_\[0-9]+\\(D\\) \[=!]= 0" "optimized" } }
6 #include <new>
7 #include <utility>
9 struct s1{
10   int a;
11   int b;
12   int c;
15 void f1 (s1 * v, s1&& s)
17         new (v) s1(std::move(s));
20 void f2 (s1 * v, s1&& s)
22         *v = std::move(s);