[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / linkage-merge.cpp
blobdc2ad759127ec9e55bd9728cf257b0f561072b48
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s
4 #include "linkage-merge-bar.h"
6 static int f(int);
7 int f(int);
9 static void g(int);
10 // expected-error@9 {{functions that differ only in their return type cannot be overloaded}}
11 // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}