John McCall | 1c70e99 | 2010-06-03 19:28:45 +0000 | [diff] [blame] | 1 | struct A { |
Argyrios Kyrtzidis | 544ea71 | 2016-02-18 23:08:36 +0000 | [diff] [blame] | 2 | public: |
3 | int x; | ||||
John McCall | 1c70e99 | 2010-06-03 19:28:45 +0000 | [diff] [blame] | 4 | }; |
5 | |||||
6 | struct B : A { | ||||
7 | float y; | ||||
8 | float foo(); | ||||
9 | }; | ||||
Douglas Gregor | 0eaa2bf | 2010-10-01 23:55:07 +0000 | [diff] [blame] | 10 | |
11 | struct C { | ||||
12 | C(int i = 10); | ||||
13 | C(const C&); | ||||
14 | C &operator=(C&); | ||||
15 | ~C(); | ||||
16 | }; | ||||
Richard Smith | 5bb4cdf | 2012-12-20 02:22:15 +0000 | [diff] [blame] | 17 | |
18 | enum E { | ||||
19 | b = 1 | ||||
20 | }; |