[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / AST / ByteCode / enums-targets.cpp
blob81601a2ed877e49cc1d2b1f4b19cbf902b75ebb1
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
10 // expected-no-diagnostics
12 /// This test is split out from the rest since the output is target dependent.
14 enum E { // warn-warning {{enumeration values exceed range of largest integer}}
15 E1 = -__LONG_MAX__ -1L,
16 E2 = __LONG_MAX__ *2UL+1UL