aboutsummaryrefslogtreecommitdiff
path: root/third_party/chromium/base/template_util_unittest.cc
blob: 25f4ba30928829f184bca46d6dfda13a674c889e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 <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