OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 // This is a "No Compile Test" suite. |
| 6 // http://dev.chromium.org/developers/testing/no-compile-tests |
| 7 |
| 8 #include "base/metrics/histogram_macros.h" |
| 9 |
| 10 namespace base { |
| 11 |
| 12 #if defined(NCTEST_DIFFERENT_ENUM) // [r"\|sample\| and \|boundary\| shouldn't
be of different enums"] |
| 13 |
| 14 void WontCompile() { |
| 15 enum TypeA { A }; |
| 16 enum TypeB { B }; |
| 17 UMA_HISTOGRAM_ENUMERATION("", A, B); |
| 18 } |
| 19 |
| 20 #endif |
| 21 |
| 22 } // namespace base |
OLD | NEW |