FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / memconst.C
blob568f267d52e87cf0c4a3a3167b22969850b02025
1 // From: Ove.Ewerlid@syscon.uu.se (Ove Ewerlid)
2 // Subject: ss-940630:cc1plus: internal error
3 // Date: Sat, 2 Jul 1994 05:07:20 +0200
4 // Special g++ Options:
5 // Build don't link:
7 class qwerty {
8 public:
9     qwerty (const unsigned short userkey[8]);
10    ~qwerty ();
13 class foo {
14 private:
15   static const unsigned char * const dummy_key = (unsigned char*)"ThisIs a dummy!"; // ERROR - 
17 public:
18     void bar ();
21 void
22 foo::bar ()
24     qwerty QWERTY ((unsigned short*)dummy_key); // ERROR -