Skip to content

Commit 11a6f43

Browse files
committedMar 13, 2025
Add comment about delegating constructors to the test
1 parent 71d0597 commit 11a6f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎clang/test/SemaCXX/union-member-destructor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct VS {
1313
VS(short);
1414
VS();
1515
};
16-
VS::VS() : VS(0) { }
16+
VS::VS() : VS(0) { } // delegating constructors should not produce errors
1717
VS::VS(short) : _Tail() { } // expected-note {{in instantiation of member function 't1::VSX<int>::~VSX' requested here}}
1818
}
1919

0 commit comments

Comments
 (0)