blob: 1f6a3a0cd9109b46e57c98c8a26d419a2ba296fb [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}}
Hal Finkela8443c32014-07-17 14:49:58 +00006
7 int test = sizeof(struct{char qq[(__assume(i != 5), 7)];});
8
Hal Finkelf0417332014-07-17 14:25:55 +00009 return a[i];
10}
11