☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libstdc++-v3
/
testsuite
/
20_util
/
variant
/
default_ctor.cc
☽
☼
libstdc++-v3/testsuite/20_util/variant/default_ctor.cc
code
plain
raw
1
// { dg-do compile { target c++17 } }
2
3
#include <variant>
4
5
struct A{ A(int); };
6
struct B{ B(){}; };
7
8
void f(std::variant<A>);
9
int f(B);
10
11
int unambiguous = f({}); // { dg-bogus "ambiguous" }