[PATCH 01/11] Output CodeView data about variables
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / cvt20.C
blob97b465fe06f4fd38c775846fc7ceb2372fb5f03b
1 // { dg-do assemble  }
2 // GROUPS passed conversions
3 // cvt file
4 // Message-Id: <9307152250.AA24812@volterra>
5 // From: rst@ai.mit.edu (Robert S. Thau)
6 // Subject: g++ won't convert char[] to char*&
7 // Date: Thu, 15 Jul 93 18:50:59 EDT
10 // Compiles fine with Sun CC 2.1
12 void f(const char *& x) // { dg-message "argument" }
14   x++;
17 int main()
19   f ("foo"); // { dg-error "cannot bind non-const lvalue reference" }