Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/arm3.C

raw
1 // { dg-do assemble }
2 // GROUPS passed ARM-compliance
3 // arm file
4 // Message-Id: <[email protected]>
5 // From: [email protected] (Glenn P Parker)
6 // Subject: gcc bug
7 // Date: Mon, 25 Jan 1993 20:39:19 -0500
8
9 class X {
10 enum S { blue, pink };
11 int S;
12 public:
13 void f (enum S arg) ;
14 };
15
16 void X::f (enum S arg)
17 {
18 S = arg; // g++ gives error on this line.
19 }
20