Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / fixit-sysheader-test.cpp
blob45fa5a90145cf2d5a6e2a68c0ffdf8af4cf49ede
1 // RUN: c-index-test -test-load-source all %s 2>&1 | FileCheck %s
3 #include "fixit-sys-header.h"
4 #include "fixit-user-header.h"
6 int main(int argc, char const *argv[])
8 char* str;{};
10 func_in_sys_header(str, str + 10);
11 // CHECK: Number FIX-ITs = 0
12 // CHECK-NEXT: candidate function not viable: no known conversion from 'char *' to 'unsigned long' for 2nd argument; dereference the argument with *
13 // CHECK-NEXT: Number FIX-ITs = 0
15 func_in_user_header(str, str + 10);
16 // CHECK: Number FIX-ITs = 0
17 // CHECK-NEXT: candidate function not viable: no known conversion from 'char *' to 'unsigned long' for 2nd argument; dereference the argument with *
18 // CHECK-NEXT: Number FIX-ITs = 2
20 return 0;