blob: ee1035ad7b8094ab2535bf2861f16c4eaae47593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/* PR tree-optimization/44547 - -Wuninitialized reports false warning
in nested switch statements
{ dg-do compile }
{ dg-options "-O1 -Wall" } */
__attribute__ ((noipa)) int test_O1 (int argc)
{
switch( argc )
{
case 1:
case 2:
case 4:
{
int n;
switch( argc )
{
case 1:
case 2:
case 4:
n = argc;
break;
}
return n;
break;
}
}
return 0;
}
#pragma GCC optimize ("2")
__attribute__ ((noipa)) int test_O2 (int argc)
{
switch( argc )
{
case 1:
case 2:
case 4:
{
int n;
switch( argc )
{
case 1:
case 2:
case 4:
n = argc;
break;
}
return n;
break;
}
}
return 0;
}
|