| 1 | // RUN: rm -rf %t |
|---|---|
| 2 | // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s |
| 3 | |
| 4 | #include "linkage-merge-bar.h" |
| 5 | |
| 6 | static int f(int); |
| 7 | int f(int); |
| 8 | |
| 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}} |
| 12 |