[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / anon-redecl.cpp
blobc3c5c9e527e47da5af9c0b9ee527764adbb5c55a
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-local-submodule-visibility \
3 // RUN: -fmodule-map-file=%S/Inputs/anon-redecl/module.modulemap \
4 // RUN: -I%S/Inputs/anon-redecl \
5 // RUN: -verify -std=c++11 %s
7 #include "a.h"
8 #include "b.h"
9 #include "c1.h"
10 #include "c2.h"
12 // expected-no-diagnostics
13 int x = a({});
14 int y = b({});
15 int z = c({});