[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / merge-name-for-linkage.cpp
blob1fd16865ca7b99faaa67258604ea4d7e0451d41b
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-name-for-linkage -verify %s
3 // expected-no-diagnostics
4 typedef union {} pthread_mutex_t;
5 typedef pthread_mutex_t pthread_mutex_t;
6 #include "a.h"
7 pthread_mutex_t x;
8 #include "b.h"
9 pthread_mutex_t y;
10 merged_after_definition z;