summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/shadow1.C
blob: d13dfe83ed20a07cbd92862518eec9beb1dc5f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// { dg-do assemble  }
// { dg-options "-Wshadow" }
// GROUPS passed shadow-warnings
// shadow file
// Message-Id: <9211061827.AA03517@harvey>
// From: Jeff Gehlhaar <jbg@qualcomm.com>
// Subject: GCC Bug..
// Date: Fri, 6 Nov 1992 10:27:10 -0700

class Klasse
{
public:
        Klasse(void);           // constructor
        int Shadow(void);       // member function
private:
        long value;
};

Klasse::Klasse(void)
{
        value = 0;
}

static inline unsigned char
Function(int Shadow)
{
        return 0;
}