https://issues.dlang.org/show_bug.cgi?id=22342

--- Comment #2 from Iain Buclaw <[email protected]> ---
Side effects cannot be discarded either:
---
int printf(const char *, ...);

int foo()
{
  printf("A\n");
  return 0;
}

int bar()
{
  printf("B\n");
  return 0;
}

int main()
{
  int v;
  return bar(1, &v, foo(), "str", bar());
}
---

Compiles without any warnings, and outputs:
---
B
A
B

--

Reply via email to