[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / ASTMerge / function-cpp / test.cpp
blob304ce3c634c2b41c1882264b0cc2d2701eee9a7b
1 // RUN: %clang_cc1 -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/function-1.cpp
2 // RUN: %clang_cc1 -std=c++1z -ast-merge %t.1.ast -fsyntax-only %s 2>&1 | FileCheck %s
3 // XFAIL: *
5 static_assert(add(1, 2) == 5);
7 // FIXME: support of templated function overload is still not implemented.
8 static_assert(add('\1', '\2') == 3);
10 // CHECK-NOT: static_assert