Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1320)

Unified Diff: gcc/testsuite/gcc.dg/pr50193-1.c

Issue 5991052: [branches/google/gcc-4_6_2-mobile] Backported r186168 from branches/google/gcc-4_6. (Closed) Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6_2-mobile/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/testsuite/ChangeLog ('k') | gcc/testsuite/gcc.target/arm/shiftable.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/testsuite/gcc.dg/pr50193-1.c
===================================================================
--- gcc/testsuite/gcc.dg/pr50193-1.c (revision 0)
+++ gcc/testsuite/gcc.dg/pr50193-1.c (working copy)
@@ -0,0 +1,10 @@
+/* PR 50193: ARM: ICE on a | (b << negative-constant) */
+/* Ensure that the compiler doesn't ICE. */
+
+/* { dg-options "-O2" } */
+
+int
+foo(int a, int b)
+{
+ return a | (b << -3); /* { dg-warning "left shift count is negative" } */
+}
« no previous file with comments | « gcc/testsuite/ChangeLog ('k') | gcc/testsuite/gcc.target/arm/shiftable.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b