X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fbug-478094.c;h=7497564561b70c29573b77696629ac1307b9093a;hb=f755a86f5408ab034d4478f4a635612d1df9a00e;hp=10158421f62d3a401763bf479b67166af0488b4b;hpb=a046291bc6b5843709af03203b07549c30dd1f32;p=fw%2Fsdcc diff --git a/support/regression/tests/bug-478094.c b/support/regression/tests/bug-478094.c index 10158421..74975645 100644 --- a/support/regression/tests/bug-478094.c +++ b/support/regression/tests/bug-478094.c @@ -4,36 +4,40 @@ -int foo = 16; +int foo = 16; void f( int x ) { UNUSED(x); } -void g(int bar) -{ - int a = 0; - int b = 0; +void g(int bar) +{ + int a = 0; + int b = 0; + + while(1) { + switch(bar) { + case 0: + --foo; + f(foo); + break; + case 1: + ++foo; + f(foo); + break; + case 2: + ++a; + f(a); + break; + case 3: + ++b; + f(b); + break; + } + } +} - while(1) { - switch(bar) { - case 0: - --foo; - f(foo); - break; - case 1: - ++foo; - f(foo); - break; - case 2: - ++a; - f(a); - break; - case 3: - ++b; - f(b); - break; - } - } -} +void testBug(void) +{ +}