OSDN Git Service

* g++.old-deja/g++.eh/cleanup2.C: New test.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ext / memconst.C
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:
6
7 class qwerty {
8 public:
9     qwerty (const unsigned short userkey[8]);
10    ~qwerty ();
11 };
12
13 class foo {
14 private:
15   static const unsigned char * const dummy_key = (unsigned char*)"ThisIs a dummy!";
16
17 public:
18     void bar ();
19 };
20
21 void
22 foo::bar ()
23 {
24     qwerty QWERTY ((unsigned short*)dummy_key);
25 }