Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.law / arg11.C
blob3772b07990ee48dd6e57138369a6f9fdec158fc7
1 // { dg-do assemble  }
2 // GROUPS passed arg-matching
3 // From: gustavo@cpqd.br (Gustavo Chaves)
4 // Date:     Wed, 25 May 94 09:38:00 EST
5 // Subject:  problem with user defined conversions in initialization
6 // Message-ID: <9405251238.AA19815@moon.cpqd.br>
8 struct String { String(const char*); };
10 struct Ack { Ack(String); };
12 struct S { void method(Ack); }; // { dg-error "" } referenced below
14 void function(Ack);
16 int
17 foo(S *o)
18 { // Neither call has a usable constructor for conversions of char[5] to Ack.
19   function("adsf");// { dg-error "" } 
20   o->method("adsf");// { dg-error "" } 
21   return 0;