19 lines · cpp
1// RUN: %clang_cc1 -triple i686-pc-linux -fexperimental-new-constant-interpreter -verify %s2// RUN: %clang_cc1 -triple i686-pc-linux -verify %s3// RUN: %clang_cc1 -triple x86_64-pc-linux -fexperimental-new-constant-interpreter -verify=warn %s4// RUN: %clang_cc1 -triple x86_64-pc-linux -verify=warn %s5// RUN: %clang_cc1 -triple x86_64-windows-msvc -fexperimental-new-constant-interpreter -verify %s6// RUN: %clang_cc1 -triple x86_64-windows-msvc -verify %s7// RUN: %clang_cc1 -triple hexagon -fexperimental-new-constant-interpreter -verify %s8// RUN: %clang_cc1 -triple hexagon -verify %s9 10// expected-no-diagnostics11 12/// This test is split out from the rest since the output is target dependent.13 14enum E { // warn-warning {{enumeration values exceed range of largest integer}}15 E1 = -__LONG_MAX__ -1L,16 E2 = __LONG_MAX__ *2UL+1UL17};18 19