1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name nestedclass.cpp %s > %tmapping
2 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-OUTER
3 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-INNER
4 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-INNERMOST
6 struct Test
{ // CHECK-OUTER: emitTest
7 void emitTest() { // CHECK-OUTER: File 0, [[@LINE]]:19 -> [[@LINE+2]]:4 = #0
10 struct Test2
{ // CHECK-INNER: emitTest2
11 void emitTest2() { // CHECK-INNER: File 0, [[@LINE]]:22 -> [[@LINE+2]]:6 = #0
14 struct Test3
{ // CHECK-INNERMOST: emitTest3
15 static void emitTest3() { // CHECK-INNERMOST: File 0, [[@LINE]]:31 -> [[@LINE+2]]:8 = 0