summaryrefslogtreecommitdiffstats
path: root/base/safe_numerics_unittest.nc
blob: 4a3c57ef342ca0955f86a2649e735cba0a8a14ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2013 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/safe_numerics.h"

namespace base {
namespace internal {

void NoFloatingPoint {
  IsValidNumericCast<float>(0.0);
  IsValidNumericCast<double>(0.0f);
  IsValidNumericCast<int>(DBL_MAX);
}

}  // namespace internal
}  // namespace base