blob: 6c83b6907efa0ca0d9b8e278ac6f82817a92405d [file] [log] [blame]
Hal Finkelf0417332014-07-17 14:25:55 +00001// RUN: %clang_cc1 -triple i386-mingw32 -fms-extensions -fsyntax-only -verify %s
2
3int foo(int *a, int i) {
4 __assume(i != 4);
5 __assume(++i > 2); //expected-warning {{the argument to __assume has side effects that will be discarded}}
6 return a[i];
7}
8