| 1 |
// RUN: %clang_cc1 -verify -ffixed-point %s |
| 2 |
// RUN: %clang_cc1 -verify -ffixed-point %s -fexperimental-new-constant-interpreter |
| 3 |
|
| 4 |
union a { |
| 5 |
_Accum x; |
| 6 |
int i; |
| 7 |
}; |
| 8 |
|
| 9 |
int fn1(void) { |
| 10 |
union a m; |
| 11 |
m.x = 5.6k; |
| 12 |
return m.i; |
| 13 |
} |
| 14 |
|
| 15 |
int fn2(void) { |
| 16 |
union a m; |
| 17 |
m.x = 7, 5.6k; // expected-warning {{expression result unused}} |
| 18 |
return m.x, m.i; // expected-warning {{left operand of comma operator has no effect}} |
| 19 |
} |
| 20 |
|
| 21 |
_Accum acc = (0.5r, 6.9k); // expected-warning {{left operand of comma operator has no effect}} |