CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
61 lines
1.9 KiB
C
61 lines
1.9 KiB
C
// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -fms-compatibility %s
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple i386-pc-win32 -fms-compatibility %s
|
|
|
|
__int8 x1 = 3i8;
|
|
__int16 x2 = 4i16;
|
|
__int32 x3 = 5i32;
|
|
__int64 x5 = 0x42i64;
|
|
__int64 x6 = 0x42I64;
|
|
|
|
__int64 y = 0x42i64u; // expected-error {{invalid suffix}}
|
|
__int64 w = 0x43ui64;
|
|
__int64 z = 9Li64; // expected-error {{invalid suffix}}
|
|
__int64 q = 10lli64; // expected-error {{invalid suffix}}
|
|
|
|
__complex double c1 = 1i; // GNU extension
|
|
__complex double c2 = 1.0i; // GNU extension
|
|
__complex float c3 = 1.0if;
|
|
|
|
#define UINT128_MAX 0xffffffffffffffffffffffffffffffffui128
|
|
#define ULLONG_MAX 0xffffffffffffffffui64
|
|
#define UINT 0xffffffffui32
|
|
#define USHORT 0xffffui16
|
|
#define UCHAR 0xffui8
|
|
|
|
#define INT128_MAX 170141183460469231731687303715884105727i128
|
|
|
|
void a(void) {
|
|
#if __SIZEOF_INT128__
|
|
__int128 j = UINT128_MAX;
|
|
__int128 k = INT128_MAX;
|
|
#else
|
|
int j = UINT128_MAX;
|
|
// expected-warning@-1{{implicit conversion from 'unsigned __int128' to 'int' changes value from 340282366920938463463374607431768211455 to -1}}
|
|
// expected-error@-2{{integer literal is too large to be represented in any integer type}}
|
|
int k = INT128_MAX;
|
|
// expected-warning@-1{{implicit conversion from '__int128' to 'int' changes value from 170141183460469231731687303715884105727 to -1}}
|
|
// expected-error@-2{{integer literal is too large to be represented in any signed integer type}}
|
|
#endif
|
|
unsigned long long m = ULLONG_MAX;
|
|
unsigned int n = UINT;
|
|
unsigned short s = USHORT;
|
|
unsigned char c = UCHAR;
|
|
}
|
|
|
|
void pr_7968(void)
|
|
{
|
|
int var1 = 0x1111111e+1;
|
|
int var2 = 0X1111111e+1;
|
|
int var3 = 0xe+1;
|
|
int var4 = 0XE+1;
|
|
|
|
int var5= 0\
|
|
x1234e+1;
|
|
|
|
int var6=
|
|
/*expected-warning {{backslash and newline separated by space}} */ 0\
|
|
x1234e+1;
|
|
}
|
|
|