================
@@ -216,3 +216,6 @@ int PR4517_x2 = PR4517_arrc[PR4517_idx];
 // CHECK: @PR4517_x = global i32 42, align 4
 // CHECK: @PR4517_idx = constant i32 1, align 4
 // CHECK: @PR4517_x2 = global i32 42, align 4
+
+// CHECK: @GH84784_inf = constant i8 1
+_Bool const GH84784_inf = (1.0/0.0);
----------------
AaronBallman wrote:

It'd also be good to add a test in Sema along the lines of:
```
_Bool const inf1 =  (1.0/0.0 == __builtin_inf()); // ok
constexpr _Bool inf2 =  (1.0/0.0 == __builtin_inf()); // expected-error
```

https://github.com/llvm/llvm-project/pull/84981
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to