1 // RUN: %strip_comments > %t.stripped.c 2 // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name builtinmacro.c %t.stripped.c | FileCheck %s 3 4 // Test the coverage mapping generation for built-in macroes. 5 6 // CHECK: filename 7 const char *filename (const char *name) { // CHECK-NEXT: File 0, [[@LINE]]:41 -> [[@LINE+3]]:2 = #0 8 static const char this_file[] = __FILE__; 9 return this_file; 10 } 11 12 int main() { // CHECK-NEXT: main 13 filename(__FILE__ "test.c"); 14 return 0; 15 } 16