1 // RUN: %clang_cc1 -std=c++2b -fsyntax-only -verify %s
4 #error "z suffix must be recognized by preprocessor"
7 #error "uz suffix must be recognized by preprocessor"
10 #error "z suffix must be interpreted as signed"
13 #error "uz suffix must be interpreted as unsigned"
35 // Hexadecimal literals.
91 void InvalidSuffix() {
94 auto a1
= 1lz
; // expected-error {{invalid suffix}}
95 auto a2
= 1lZ
; // expected-error {{invalid suffix}}
96 auto a3
= 1Lz
; // expected-error {{invalid suffix}}
97 auto a4
= 1LZ
; // expected-error {{invalid suffix}}
99 auto a5
= 1zl
; // expected-error {{invalid suffix}}
100 auto a6
= 1Zl
; // expected-error {{invalid suffix}}
101 auto a7
= 1zL
; // expected-error {{invalid suffix}}
102 auto a8
= 1ZL
; // expected-error {{invalid suffix}}
104 auto a9
= 1ulz
; // expected-error {{invalid suffix}}
105 auto a10
= 1ulZ
; // expected-error {{invalid suffix}}
106 auto a11
= 1uLz
; // expected-error {{invalid suffix}}
107 auto a12
= 1uLZ
; // expected-error {{invalid suffix}}
109 auto a13
= 1uzl
; // expected-error {{invalid suffix}}
110 auto a14
= 1uZl
; // expected-error {{invalid suffix}}
111 auto a15
= 1uzL
; // expected-error {{invalid suffix}}
112 auto a16
= 1uZL
; // expected-error {{invalid suffix}}
116 auto a1
= 1llz
; // expected-error {{invalid suffix}}
117 auto a2
= 1llZ
; // expected-error {{invalid suffix}}
118 auto a3
= 1LLz
; // expected-error {{invalid suffix}}
119 auto a4
= 1LLZ
; // expected-error {{invalid suffix}}
121 auto a5
= 1zll
; // expected-error {{invalid suffix}}
122 auto a6
= 1Zll
; // expected-error {{invalid suffix}}
123 auto a7
= 1zLL
; // expected-error {{invalid suffix}}
124 auto a8
= 1ZLL
; // expected-error {{invalid suffix}}
126 auto a9
= 1ullz
; // expected-error {{invalid suffix}}
127 auto a10
= 1ullZ
; // expected-error {{invalid suffix}}
128 auto a11
= 1uLLz
; // expected-error {{invalid suffix}}
129 auto a12
= 1uLLZ
; // expected-error {{invalid suffix}}
131 auto a13
= 1uzll
; // expected-error {{invalid suffix}}
132 auto a14
= 1uZll
; // expected-error {{invalid suffix}}
133 auto a15
= 1uzLL
; // expected-error {{invalid suffix}}
134 auto a16
= 1uZLL
; // expected-error {{invalid suffix}}
138 auto a1
= 0.1z
; // expected-error {{invalid suffix}}
139 auto a2
= 0.1Z
; // expected-error {{invalid suffix}}
140 auto a3
= 0.1uz
; // expected-error {{invalid suffix}}
141 auto a4
= 0.1uZ
; // expected-error {{invalid suffix}}
142 auto a5
= 0.1Uz
; // expected-error {{invalid suffix}}
143 auto a6
= 0.1UZ
; // expected-error {{invalid suffix}}
144 auto a7
= 0.1zu
; // expected-error {{invalid suffix}}
145 auto a8
= 0.1Zu
; // expected-error {{invalid suffix}}
146 auto a9
= 0.1zU
; // expected-error {{invalid suffix}}
147 auto a10
= 0.1ZU
; // expected-error {{invalid suffix}}
149 auto a11
= 0.1fz
; // expected-error {{invalid suffix}}
150 auto a12
= 0.1fZ
; // expected-error {{invalid suffix}}
151 auto a13
= 0.1fuz
; // expected-error {{invalid suffix}}
152 auto a14
= 0.1fuZ
; // expected-error {{invalid suffix}}
153 auto a15
= 0.1fUz
; // expected-error {{invalid suffix}}
154 auto a16
= 0.1fUZ
; // expected-error {{invalid suffix}}
155 auto a17
= 0.1fzu
; // expected-error {{invalid suffix}}
156 auto a18
= 0.1fZu
; // expected-error {{invalid suffix}}
157 auto a19
= 0.1fzU
; // expected-error {{invalid suffix}}
158 auto a110
= 0.1fZU
; // expected-error {{invalid suffix}}
160 // Repetitive suffix.
162 auto a1
= 1zz
; // expected-error {{invalid suffix}}
163 auto a2
= 1zZ
; // expected-error {{invalid suffix}}
164 auto a3
= 1Zz
; // expected-error {{invalid suffix}}
165 auto a4
= 1ZZ
; // expected-error {{invalid suffix}}