brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e89fb2d Raw
29 lines · cpp
1// Should not crash with '-analyzer-opt-analyze-headers' option during CTU analysis.2//3// RUN: rm -rf %t && mkdir -p %t/ctudir4// RUN: %clang_cc1 -std=c++14 -triple x86_64-pc-linux-gnu \5// RUN:   -emit-pch -o %t/ctudir/ctu-inherited-default-ctor-other.cpp.ast \6// RUN:    %S/Inputs/ctu-inherited-default-ctor-other.cpp7// RUN: echo "59:c:@N@clang@S@DeclContextLookupResult@SingleElementDummyList ctu-inherited-default-ctor-other.cpp.ast" \8// RUN:   > %t/ctudir/externalDefMap.txt9//10// RUN: %clang_analyze_cc1 -std=c++14 -triple x86_64-pc-linux-gnu \11// RUN:   -analyzer-opt-analyze-headers \12// RUN:   -analyzer-checker=core \13// RUN:   -analyzer-config experimental-enable-naive-ctu-analysis=true \14// RUN:   -analyzer-config ctu-dir=%t/ctudir \15// RUN:   -analyzer-config display-ctu-progress=true \16// RUN:   -verify %s 2>&1 | FileCheck %s17//18// expected-no-diagnostics19//20// CHECK: CTU loaded AST file: ctu-inherited-default-ctor-other.cpp.ast21 22namespace clang {}23namespace llvm {}24namespace clang {25class DeclContextLookupResult {26  static int *const SingleElementDummyList;27};28} // namespace clang29