blob: 25f4ba30928829f184bca46d6dfda13a674c889e [file] [log] [blame]
Vitaly Bukacbed2062015-08-17 12:54:05 -07001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/template_util.h"
6
Vitaly Buka8750b272015-08-18 18:39:08 -07007#include <gtest/gtest.h>
8
Vitaly Bukacbed2062015-08-17 12:54:05 -07009
10namespace base {
11namespace {
12
Vitaly Bukacbed2062015-08-17 12:54:05 -070013// is_non_const_reference<Type>
Alex Vakulenko674f0eb2016-01-20 08:10:48 -080014static_assert(!is_non_const_reference<int>::value, "IsNonConstReference");
15static_assert(!is_non_const_reference<const int&>::value,
16 "IsNonConstReference");
17static_assert(is_non_const_reference<int&>::value, "IsNonConstReference");
Vitaly Bukacbed2062015-08-17 12:54:05 -070018
Vitaly Bukacbed2062015-08-17 12:54:05 -070019} // namespace
20} // namespace base