blob: 43bc5d8a1a24b336ab0bc45f5ea701ccd4de284e [file] [log] [blame]
Douglas Gregord93256e2010-01-28 06:00:51 +00001_Complex cd; // CHECK: code-complete-errors.c:1:1: warning: plain '_Complex' requires a type specifier; assuming '_Complex double'
2
3struct s {
4 int x, y;;
5};
6
7struct s s0 = { y: 5 }; // CHECK: code-complete-errors.c:7:20: warning: use of GNU old-style field designator extension
8
9int f(int *ptr1, float *ptr2) {
10 return ptr1 != ptr2; // CHECK: code-complete-errors.c:10:15: warning: comparison of distinct pointer types ('int *' and 'float *')
11}
12
13void g() { }
14
15// RUN: c-index-test -code-completion-at=%s:13:12 %s 2> %t
16// RUN: FileCheck -check-prefix=CHECK %s < %t