You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -132,12 +133,17 @@ int main(int argc, char **argv) {
132
133
}
133
134
case'5': {
134
135
// CHECK-5: {{.*}}cast-overflow.cpp:[[@LINE+1]]:27: runtime error: {{.*}} is outside the range of representable values of type 'int'
136
+
staticint test_int = (__fp16)Inf;
137
+
return0;
138
+
}
139
+
case'6': {
140
+
// CHECK-6: {{.*}}cast-overflow.cpp:[[@LINE+1]]:27: runtime error: {{.*}} is outside the range of representable values of type 'int'
135
141
staticint test_int = NaN;
136
142
return0;
137
143
}
138
144
// Integer -> floating point overflow.
139
-
case'6': {
140
-
// CHECK-6: cast-overflow.cpp:[[@LINE+2]]:{{27: runtime error: 3.40282e\+38 is outside the range of representable values of type 'int'| __int128 not supported}}
145
+
case'7': {
146
+
// CHECK-7: cast-overflow.cpp:[[@LINE+2]]:{{27: runtime error: 3.40282e\+38 is outside the range of representable values of type 'int'| __int128 not supported}}
0 commit comments