]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Analysis/ctu-unknown-parts-in-triples.cpp
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / Analysis / ctu-unknown-parts-in-triples.cpp
1 // We do not expect any error when one part of the triple is unknown, but other
2 // known parts are equal.
3
4 // RUN: rm -rf %t && mkdir %t
5 // RUN: mkdir -p %t/ctudir
6 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu \
7 // RUN:   -emit-pch -o %t/ctudir/ctu-other.cpp.ast %S/Inputs/ctu-other.cpp
8 // RUN: cp %S/Inputs/ctu-other.cpp.externalDefMap.txt %t/ctudir/externalDefMap.txt
9 // RUN: %clang_analyze_cc1 -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 %s
15
16 // expected-no-diagnostics
17
18 int f(int);
19
20 int main() {
21   return f(5);
22 }