blob: a43e36cc7cf3a4bf04ed59e909ef3446fef1dc1f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O1 -fstrict-overflow -fdump-tree-optimized" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
int f(int a)
{
return 10/-a;
}
/* { dg-final { scan-tree-dump-times "10 / -a" 0 "optimized"} } */
/* { dg-final { scan-tree-dump-times "-10 / a" 1 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */