Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / USR / linkage.cpp
blobfec80dace16e4221be3042be0f0a3c1b177a082d
1 // RUN: c-index-test core -print-source-symbols -- %s | FileCheck %s
3 // Linkage decls are skipped in USRs for enclosed items.
4 // Linkage decls themselves don't have USRs (no lines between ns and X).
5 // CHECK: {{[0-9]+}}:11 | namespace/C++ | ns | c:@N@ns |
6 // CHECK-NEXT: {{[0-9]+}}:33 | variable/C | X | c:@N@ns@X |
7 namespace ns { extern "C" { int X; } }