blob: 70deea093271f6b733efba5e180f7856cc7b1fd2 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "stubs/check.h"
void IteratorValidAfterCheck(std::vector<int>& v) {
auto it = v.begin();
CHECK(it != v.end());
// Valid because it was checked against `end`.
*it;
}