Peter Kasting | a4284ca | 2024-01-29 22:30:07 | [diff] [blame^] | 1 | // Copyright 2024 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // This is a "No Compile Test" suite. |
| 6 | // http://dev.chromium.org/developers/testing/no-compile-tests |
| 7 | |
| 8 | #include "ui/views/view.h" |
| 9 | |
| 10 | namespace views { |
| 11 | |
| 12 | struct SyncLayout : public View { |
| 13 | void DoSomething() { |
| 14 | LayoutImmediately(); // expected-error {{'LayoutImmediately' is a private member}} |
| 15 | } |
| 16 | }; |
| 17 | |
| 18 | } // namespace views |