summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/exprs.c
blob: 16b63f8883bb6681761c72f9135c23662afeacb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: clang %s -emit-llvm

// PR1895
// sizeof function
int zxcv(void);
int x=sizeof(zxcv);
int y=__alignof__(zxcv);


void *test(int *i) {
 short a = 1;
 i += a;
 i + a;
 a + i;
}

_Bool test2b; 
int test2() {if (test2b);}

// PR1921
int test3() {
  const unsigned char *bp;
  bp -= (short)1;
}

OpenPOWER on IntegriCloud