summaryrefslogtreecommitdiffstats
path: root/chromium/base/template_util_unittest.cc
blob: 25441cda10618e63bc6aeab8abdc8598bb30fdec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2012 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 "base/template_util.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace base {
namespace {

// is_non_const_reference<Type>
static_assert(!is_non_const_reference<int>::value, "IsNonConstReference");
static_assert(!is_non_const_reference<const int&>::value,
              "IsNonConstReference");
static_assert(is_non_const_reference<int&>::value, "IsNonConstReference");

}  // namespace
}  // namespace base