diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-06 15:59:20 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-06 15:59:20 +0100 |
commit | 196e84b11515d10fb4023a7d5975b2cd0b2d1271 (patch) | |
tree | 74c03cdca6b14d61fcd56027cc45b41f050eb469 /test_deliverable/testcases/test_QUICKSORT_driver.c | |
parent | 7e8ce5d95035e06a62f3d1a6f5b716863cc71829 (diff) | |
download | Compiler-196e84b11515d10fb4023a7d5975b2cd0b2d1271.tar.gz Compiler-196e84b11515d10fb4023a7d5975b2cd0b2d1271.zip |
Fixed decrement
Diffstat (limited to 'test_deliverable/testcases/test_QUICKSORT_driver.c')
-rw-r--r-- | test_deliverable/testcases/test_QUICKSORT_driver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_QUICKSORT_driver.c b/test_deliverable/testcases/test_QUICKSORT_driver.c new file mode 100644 index 0000000..9ba336e --- /dev/null +++ b/test_deliverable/testcases/test_QUICKSORT_driver.c @@ -0,0 +1,9 @@ +void quickSort(int*, int, int); + +int main() +{ + int a[9] = { 7, 12, 1, -2, 0, 15, 4, 11, 9}; + quickSort( a, 0, 8); + + return !( a[0]==-2 && a[1]==0 && a[2]==1 && a[3]==4 && a[4]==7 && a[5]==9 && a[6]==11 && a[7]==12 && a[8]==15 ); +} |