1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17

content / browser / browser_task_traits_nocompile.nc [blame]

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This is a "No Compile Test" suite.
// http://dev.chromium.org/developers/testing/no-compile-tests

#include "content/public/browser/browser_task_traits.h"

namespace content {

// expected-error@*:* {{The traits bag contains multiple traits of the same type.}}
// expected-error@*:* {{static assertion failed due to requirement 'value != __ambiguous'}}
// expected-error@*:* {{constexpr variable 'traits' must be initialized by a constant expression}}
constexpr BrowserTaskTraits traits = {BrowserTaskType::kNavigationNetworkResponse, BrowserTaskType::kUserInput};

}  // namespace content