132aff2ebSGabor Marton // RUN: rm -rf %t && mkdir %t 232aff2ebSGabor Marton // RUN: mkdir -p %t/ctudir 3b0914e72SArtem Dergachev // RUN: %clang_cc1 -std=c++14 -triple x86_64-pc-linux-gnu \ 432aff2ebSGabor Marton // RUN: -emit-pch -o %t/ctudir/ctu-other.cpp.ast %S/Inputs/ctu-other.cpp 5*5cc18516SEndre Fülöp // RUN: cp %S/Inputs/ctu-other.cpp.externalDefMap.ast-dump.txt %t/ctudir/externalDefMap.txt 6b0914e72SArtem Dergachev // RUN: %clang_analyze_cc1 -std=c++14 -triple powerpc64-montavista-linux-gnu \ 732aff2ebSGabor Marton // RUN: -analyzer-checker=core,debug.ExprInspection \ 832aff2ebSGabor Marton // RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \ 932aff2ebSGabor Marton // RUN: -analyzer-config ctu-dir=%t/ctudir \ 1032aff2ebSGabor Marton // RUN: -Werror=ctu \ 1132aff2ebSGabor Marton // RUN: -verify %s 1232aff2ebSGabor Marton 1332aff2ebSGabor Marton // We expect an error in this file, but without a location. 1432aff2ebSGabor Marton // expected-error-re@./ctu-different-triples.cpp:*{{imported AST from {{.*}} had been generated for a different target, current: powerpc64-montavista-linux-gnu, imported: x86_64-pc-linux-gnu}} 1532aff2ebSGabor Marton 1632aff2ebSGabor Marton int f(int); 1732aff2ebSGabor Marton main()1832aff2ebSGabor Martonint main() { 1932aff2ebSGabor Marton return f(5); 2032aff2ebSGabor Marton } 21