| 1 |
// RUN: %clang_cc1 -triple i686-pc-linux -fexperimental-new-constant-interpreter -verify %s |
| 2 |
// RUN: %clang_cc1 -triple i686-pc-linux -verify %s |
| 3 |
// RUN: %clang_cc1 -triple x86_64-pc-linux -fexperimental-new-constant-interpreter -verify=warn %s |
| 4 |
// RUN: %clang_cc1 -triple x86_64-pc-linux -verify=warn %s |
| 5 |
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fexperimental-new-constant-interpreter -verify %s |
| 6 |
// RUN: %clang_cc1 -triple x86_64-windows-msvc -verify %s |
| 7 |
// RUN: %clang_cc1 -triple hexagon -fexperimental-new-constant-interpreter -verify %s |
| 8 |
// RUN: %clang_cc1 -triple hexagon -verify %s |
| 9 |
|
| 10 |
// expected-no-diagnostics |
| 11 |
|
| 12 |
/// This test is split out from the rest since the output is target dependent. |
| 13 |
|
| 14 |
enum E { // warn-warning {{enumeration values exceed range of largest integer}} |
| 15 |
E1 = -__LONG_MAX__ -1L, |
| 16 |
E2 = __LONG_MAX__ *2UL+1UL |
| 17 |
}; |
| 18 |
|