File: prn10.cc

package info (click to toggle)
cccc 1:3.1.4-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,956 kB
  • sloc: ansic: 33,244; cpp: 10,527; java: 622; makefile: 156; sh: 11
file content (17 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// prn10.cc
// SourceForge bugtracker item 233584
// submitted by Victor B Putz
// Tests handling of data members and globals specified as 
// 'const static' and 'static const' as both are accepted by GCC.

const static char csNonMember;
static const char scNonMember;

class A 
{ 
    const static char csMember; 
    static const char scMember; 
};