| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "variant_of_gced_type.h" |
| |
| namespace blink { |
| |
| void ForbidsVariantsOfGcedTypes() { |
| absl::variant<Base> not_ok; |
| (void)not_ok; |
| |
| absl::variant<Base, Base> similarly_not_ok; |
| (void)similarly_not_ok; |
| |
| absl::variant<int, Base> not_ok_either; |
| (void)not_ok_either; |
| |
| absl::variant<int, Derived> ditto; |
| (void)ditto; |
| |
| new absl::variant<Mixin>; |
| } |
| |
| } // namespace blink |