brintos

brintos / llvm-project-archived public Read only

0
0
Text · 757 B · f41f07d Raw
23 lines · cpp
1// We do not expect any error when one part of the triple is unknown, but other2// known parts are equal.3 4// RUN: rm -rf %t && mkdir %t5// RUN: mkdir -p %t/ctudir6// RUN: %clang_cc1 -std=c++14 -triple x86_64-pc-linux-gnu \7// RUN:   -emit-pch -o %t/ctudir/ctu-other.cpp.ast %S/Inputs/ctu-other.cpp8// RUN: cp %S/Inputs/ctu-other.cpp.externalDefMap.ast-dump.txt %t/ctudir/externalDefMap.txt9// RUN: %clang_analyze_cc1 -std=c++14 -triple x86_64-unknown-linux-gnu \10// RUN:   -analyzer-checker=core,debug.ExprInspection \11// RUN:   -analyzer-config experimental-enable-naive-ctu-analysis=true \12// RUN:   -analyzer-config ctu-dir=%t/ctudir \13// RUN:   -Werror=ctu \14// RUN:   -verify %s15 16// expected-no-diagnostics17 18int f(int);19 20int main() {21  return f(5);22}23