Home | History | Annotate | Download | only in Index
      1 int *blah = 1;
      2 
      3 int
      4 
      5 // CHECK-RESULTS: NotImplemented:{TypedText const} (40)
      6 // CHECK-RESULTS: NotImplemented:{TypedText restrict} (40)
      7 // CHECK-RESULTS: NotImplemented:{TypedText volatile} (40)
      8 // CHECK-DIAGS: error: invalid value '' in '-std='
      9 // CHECK-DIAGS: complete-driver-errors.c:1:6:{1:13-1:14}: warning: incompatible integer to pointer conversion initializing 'int *' with an expression of type 'int'
     10 
     11 // Test driver errors with code completion
     12 // RUN: c-index-test -code-completion-at=%s:4:1 -std= %s 2> %t | FileCheck -check-prefix=CHECK-RESULTS %s
     13 // RUN: FileCheck -check-prefix=CHECK-DIAGS %s < %t
     14 
     15 // Test driver errors with parsing
     16 // RUN: c-index-test -test-load-source all -std= %s 2> %t | FileCheck -check-prefix=CHECK-LOAD %s
     17 // RUN: FileCheck -check-prefix=CHECK-DIAGS %s < %t
     18 // CHECK-LOAD: complete-driver-errors.c:1:6: VarDecl=blah:1:6
     19 
     20 // Test driver errors with code completion and precompiled preamble
     21 // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:1 -std= %s 2> %t | FileCheck -check-prefix=CHECK-RESULTS %s
     22 // RUN: FileCheck -check-prefix=CHECK-DIAGS %s < %t
     23 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source all -std= %s 2> %t | FileCheck -check-prefix=CHECK-LOAD %s
     24 // RUN: FileCheck -check-prefix=CHECK-DIAGS %s < %t
     25