diff options
Diffstat (limited to 'gcc_arm/testsuite/gcc.c-torture/unsorted/mtst.c')
-rwxr-xr-x | gcc_arm/testsuite/gcc.c-torture/unsorted/mtst.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/gcc.c-torture/unsorted/mtst.c b/gcc_arm/testsuite/gcc.c-torture/unsorted/mtst.c new file mode 100755 index 0000000..4f43137 --- /dev/null +++ b/gcc_arm/testsuite/gcc.c-torture/unsorted/mtst.c @@ -0,0 +1,17 @@ +foo (int *p, int c) +{ + int a, b; + a = p[0]; + b = p[1]; + c = p[2]; + if (b == 0) + goto foo1; + if (b < 0) + goto foo2;; + + return a + b + c; + foo1: + return 1; + foo2: + return 2; +} |