PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / Wmisleading-indentation-2.c
blobb4ee700ec297755c0a3d4695837bdbe108a3c42d
1 /* { dg-options "-Wmisleading-indentation" } */
2 /* { dg-do compile } */
4 /* Based on get_attr_athlon_decode from the generated insn-attrtab.c
5 for x86_64.
6 A #line directive, followed by a very long line to ensure that
7 we're in a fresh line_map.
9 This should not generate a misleading indentation warning.
11 This needs to be in its own file since -Wmisleading-indentation stops
12 after seeing a #line directive. */
13 void fn ()
15 switch (0)
17 #line 6 "../../../../src/gcc/testsuite/c-c++-common/Wmisleading-indentation-2.md"
18 case 0:
19 if (0)
21 return;
24 case 1:
25 if (0)
27 return;
29 else
31 return;
34 /**********************************************************************************************************************************/
35 if (0)
37 return;
39 else if (0)
41 return;
43 else if (0)
45 return;
47 else
49 return;
52 default:
53 return;