[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / libc-libcxx.cpp
blob1f6a86b7782a7fe8e7171ea9871f60a5b07c44ac
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x c++ -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/libc-libcxx/include/c++ -I %S/Inputs/libc-libcxx/include %s -verify
3 // RUN: rm -rf %t
4 // RUN: %clang_cc1 -x c++ -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodules-local-submodule-visibility -nostdinc++ -isystem %S/Inputs/libc-libcxx/sysroot/usr/include/c++/v1 -isystem %S/Inputs/libc-libcxx/sysroot/usr/include -fsyntax-only %s -verify
5 // expected-no-diagnostics
7 #include "math.h"
9 int n = abs(0);
10 float f = abs<float>(0.f);