blob: 1f6a3a0cd9109b46e57c98c8a26d419a2ba296fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// RUN: %clang_cc1 -triple i386-mingw32 -fms-extensions -fsyntax-only -verify %s
int foo(int *a, int i) {
__assume(i != 4);
__assume(++i > 2); //expected-warning {{the argument to __assume has side effects that will be discarded}}
int test = sizeof(struct{char qq[(__assume(i != 5), 7)];});
return a[i];
}
|