File: prn9.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 (21 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PRN9.cc
// SourceForge bug tracker item 233548
// Submitted by Victor B Putz
// Tests handling of inheritance relationships specified as 'public virtual'
// and 'virtual public' as both are accepted by GCC.

class A
{ 
}; 

class B : public virtual A
{ 
}; 

class C : virtual public A
{
};