1 // { dg-do compile { target c++14 } }
2 // { dg-options "-O2 -fdump-tree-optimized" }
3
4 #include <algorithm>
5
g()6 static int g()
7 {
8 return 1234;
9 }
10
f2()11 int f2()
12 {
13 return std::min({1, g(), 4});
14 }
15
16 // { dg-final { scan-tree-dump "return 1;" "optimized" } }
17