mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +01:00
add comment regarding potential UB in AnyTest::testCastToReference()
This commit is contained in:
parent
5948cc8be4
commit
35a53d8f2d
@ -132,6 +132,8 @@ void AnyTest::testCastToReference()
|
||||
|
||||
int& ra = AnyCast<int &>(a);
|
||||
int const& ra_c = AnyCast<int const &>(a);
|
||||
// NOTE: The following two AnyCasts will trigger the
|
||||
// undefined behavior sanitizer.
|
||||
int volatile& ra_v = AnyCast<int volatile &>(a);
|
||||
int const volatile& ra_cv = AnyCast<int const volatile&>(a);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user