Wmisleading-indentation: add reproducer for PR c/70085

Programming / Compilers / GCC - dmalcolm [138bc75d-0d04-0410-961f-82ee72b054a4] - 11 March 2016 13:48 UTC

PR c/70085 reported a false-positive from -Wmisleading-indentation.

The warning was fixed by the fix for PR c/68187 (r233972), but it seems worth capturing the reproducer for PR c/70085 as an additional test case, as it's slightly different to those seen in PR c/68187.

gcc/testsuite/ChangeLog: PR c/70085
- c-c++-common/Wmisleading-indentation.c (pr70085): New test case.

ce234f2 Wmisleading-indentation: add reproducer for PR c/70085
gcc/testsuite/ChangeLog | 5 +++++
.../c-c++-common/Wmisleading-indentation.c | 16 ++++++++++++++++
2 files changed, 21 insertions(+)

Upstream: gcc.gnu.org


  • Share