blob: 97e660080d45f81041819bbc50f633dde080563d [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
2
3__int8 x1 = 3i8;
4__int16 x2 = 4i16;
5__int32 x3 = 5i32;
6__int64 x5 = 0x42i64;
7__int64 x4 = 70000000i128;
8
9__int64 y = 0x42i64u; // expected-error {{invalid suffix}}
10__int64 w = 0x43ui64;
11__int64 z = 9Li64; // expected-error {{invalid suffix}}
12__int64 q = 10lli64; // expected-error {{invalid suffix}}
13
14// radar 7562363
15#define ULLONG_MAX 0xffffffffffffffffui64
16#define UINT 0xffffffffui32
17#define USHORT 0xffffui16
18#define UCHAR 0xffui8
19
20void a() {
21 unsigned long long m = ULLONG_MAX;
22 unsigned int n = UINT;
23 unsigned short s = USHORT;
24 unsigned char c = UCHAR;
25}