extended version
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Oct 2007 15:21:20 +0000 (15:21 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Oct 2007 15:21:20 +0000 (15:21 +0000)
[r16252]

ir/be/test/fehler96.c

index 4e08f83..11fb151 100644 (file)
@@ -2,7 +2,15 @@ int shrs1(unsigned x) {
        return -(x >> 31);
 }
 
+int shr1(int x) {
+       return -(x >> 31);
+}
+
 int main(void)
 {
        printf("%d (should be -1)\n", shrs1(-3));
+       printf("%d (should be 1)\n", shr1(-3));
+       printf("%d (should be 0)\n", shrs1(3));
+       printf("%d (should be 0)\n", shr1(3));
+       return 0;
 }