* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted14.C
blob16df8bcc3067bd83af2224a146c099e6146ff67c
1 // PR c++/39866
2 // { dg-do compile { target c++11 } }
4 struct A {
5   A& operator=(const A&) = delete; // { dg-bogus "" }
7   void operator=(int) {}        // { dg-message "" }
8   void operator=(char) {}       // { dg-message "" }
9 };
11 struct B {};
13 int main()
15   A a;
16   a = B();              // { dg-error "no match" }
17   a = 1.0;              // { dg-error "ambiguous" }