Debian Codegraph @

libstdc++-v3/testsuite/20_util/variant/default_ctor.cc

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" }