brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · 9cfe6ba Raw
22 lines · c
1// RUN: %clang_cc1 -verify -ffixed-point %s2// RUN: %clang_cc1 -verify -ffixed-point %s -fexperimental-new-constant-interpreter3 4union a {5  _Accum x;6  int i;7};8 9int fn1(void) {10  union a m;11  m.x = 5.6k;12  return m.i;13}14 15int 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}}22