OSDN Git Service

PR c++/4872
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / cvt20.C
1 // Build don't link: 
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
8
9
10 // Compiles fine with Sun CC 2.1
11
12 void f(char *& x)
13 {// ERROR - location of error
14   x++;
15 }
16
17 int main()
18 {
19   f ("foo");// ERROR - init of non-const ref from char*
20 }