@@ -33,20 +33,20 @@ class C1 { // inherits external linkage from enclosing namespace
3333 class C2 { // inherits external linkage from class scope
3434 int m1;
3535 static int m2; // inherits external linkage from class scope
36- void m3 () {} // inherits external linkage from class scope
36+ void m3 () {} // inherits external linkage from class scope
3737 }; // inherits external linkage from class scope
3838
3939 typedef class {
4040 int m1;
4141 // static int m2 not allowed in anonymous class
4242 void m3 () {} // inherits external linkage from class scope
43- } C3; // inherits external linkage from class scope
43+ } C3; // inherits external linkage from class scope
4444
4545 class {
4646 int m1;
4747 // static int m2 not allowed in unnamed class
4848 void m3 () {} // inherits no linkage from class scope
49- } m4; // anonymous class outside typedef has no linkage
49+ } m4; // anonymous class outside typedef has no linkage
5050};
5151
5252typedef class { // inherits external linkage from enclosing namespace
@@ -64,13 +64,13 @@ typedef class { // inherits external linkage from enclosing namespace
6464 int m1;
6565 // static int m2 not allowed in anonymous class
6666 void m3 () {} // inherits external linkage from class scope
67- } C3; // inherits external linkage from enclosing namespace
67+ } C3; // inherits external linkage from enclosing namespace
6868
6969 class {
7070 int m1;
7171 // static int m2 not allowed in unnamed class
7272 void m3 () {} // inherits no linkage from class scope
73- } m4; // anonymous class outside typedef has no linkage
73+ } m4; // anonymous class outside typedef has no linkage
7474} C2;
7575
7676template <typename T>
@@ -106,20 +106,20 @@ class C1 { // inherits internal linkage from enclosing namespace
106106 class C2 {
107107 int m1;
108108 static int m2; // inherits internal linkage from class scope
109- void m3 () {} // inherits internal linkage from class scope
109+ void m3 () {} // inherits internal linkage from class scope
110110 }; // inherits internal linkage from class scope
111111
112112 typedef struct {
113113 int m1;
114114 // static int m2 not allowed in anonymous class
115115 void m3 () {} // inherits internal linkage from class scope
116- } C3; // inherits internal linkage from class scope
116+ } C3; // inherits internal linkage from class scope
117117
118118 class {
119119 int m1;
120120 // static int m2 not allowed in unnamed class
121121 void m3 () {} // inherits no linkage from class scope
122- } m4; // anonymous class outside typedef has no linkage
122+ } m4; // anonymous class outside typedef has no linkage
123123};
124124
125125typedef class { // inherits internal linkage from enclosing namespace
@@ -137,13 +137,13 @@ typedef class { // inherits internal linkage from enclosing namespace
137137 int m1;
138138 // static int m2 not allowed in anonymous class
139139 void m3 () {} // inherits internal linkage from class scope
140- } C3; // inherits internal linkage from enclosing namespace
140+ } C3; // inherits internal linkage from enclosing namespace
141141
142142 class {
143143 int m1;
144144 // static int m2 not allowed in unnamed class
145145 void m3 () {} // inherits no linkage from class scope
146- } m4; // anonymous class outside typedef has no linkage
146+ } m4; // anonymous class outside typedef has no linkage
147147} C2;
148148
149149template <typename T>
@@ -176,5 +176,4 @@ void block_scope() {
176176 int m1;
177177 void member () {} // No linkage, block scope
178178 } S2;
179-
180179}
0 commit comments