mirror of
https://github.com/microsoft/GSL.git
synced 2025-11-18 00:09:26 +01:00
Enabled -Wall for gcc and clang.
This commit is contained in:
@@ -69,7 +69,8 @@ SUITE(NotNullTests)
|
||||
MyDerived derived;
|
||||
Unrelated unrelated;
|
||||
not_null<Unrelated*> u = &unrelated;
|
||||
not_null<MyDerived*> p = &derived;
|
||||
(void)u;
|
||||
not_null<MyDerived*> p = &derived;
|
||||
not_null<MyBase*> q = &base;
|
||||
q = p; // allowed with heterogeneous copy ctor
|
||||
CHECK(q == p);
|
||||
|
||||
Reference in New Issue
Block a user