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// https://dev.chromium.org/developers/testing/no-compile-tests 7 8#include "base/check.h" 9#include "base/not_fatal_until.h" 10 11void OnlyNotFatalUntil() { 12 CHECK(base::NotFatalUntil::M130); // expected-error {{value of type 'base::NotFatalUntil' is not contextually convertible to 'bool'}} 13} 14 15void NotFatalUntilAsInt() { 16 CHECK(true, 130); // expected-error {{cannot initialize a parameter of type 'base::NotFatalUntil' with an rvalue of type 'int'}} 17} 18